diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/pixman/demos/linear-gradient.c | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/pixman/demos/linear-gradient.c')
-rw-r--r-- | qemu/pixman/demos/linear-gradient.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/qemu/pixman/demos/linear-gradient.c b/qemu/pixman/demos/linear-gradient.c deleted file mode 100644 index 46433a6e5..000000000 --- a/qemu/pixman/demos/linear-gradient.c +++ /dev/null @@ -1,50 +0,0 @@ -#include "../test/utils.h" -#include "gtk-utils.h" - -#define WIDTH 1024 -#define HEIGHT 640 - -int -main (int argc, char **argv) -{ - pixman_image_t *src_img, *dest_img; - pixman_gradient_stop_t stops[] = { - { 0x00000, { 0x0000, 0x0000, 0x4444, 0xdddd } }, - { 0x10000, { 0xeeee, 0xeeee, 0x8888, 0xdddd } }, -#if 0 - /* These colors make it very obvious that dithering - * is useful even for 8-bit gradients - */ - { 0x00000, { 0x6666, 0x3333, 0x3333, 0xffff } }, - { 0x10000, { 0x3333, 0x6666, 0x6666, 0xffff } }, -#endif - }; - pixman_point_fixed_t p1, p2; - - enable_divbyzero_exceptions (); - - dest_img = pixman_image_create_bits (PIXMAN_x8r8g8b8, - WIDTH, HEIGHT, - NULL, 0); - - p1.x = p1.y = 0x0000; - p2.x = WIDTH << 16; - p2.y = HEIGHT << 16; - - src_img = pixman_image_create_linear_gradient (&p1, &p2, stops, ARRAY_LENGTH (stops)); - - pixman_image_composite32 (PIXMAN_OP_OVER, - src_img, - NULL, - dest_img, - 0, 0, - 0, 0, - 0, 0, - WIDTH, HEIGHT); - - show_image (dest_img); - - pixman_image_unref (dest_img); - - return 0; -} |