[Pixman] [PATCH 2/6] Add new fast path flag FAST_PATH_BITS_IMAGE

Taekyun Kim podain77 at gmail.com
Thu Sep 22 04:53:19 PDT 2011


From: Taekyun Kim <tkq.kim at samsung.com>

This fast path flag indicate that type of the image is bits image.
---
 pixman/pixman-image.c   |    1 +
 pixman/pixman-private.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c
index d22698c..afe587f 100644
--- a/pixman/pixman-image.c
+++ b/pixman/pixman-image.c
@@ -375,6 +375,7 @@ compute_image_info (pixman_image_t *image)
 	else
 	{
 	    code = image->bits.format;
+	    flags |= FAST_PATH_BITS_IMAGE;
 	}
 
 	if (!PIXMAN_FORMAT_A (image->bits.format)				&&
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index 04b29aa..8b06531 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -631,6 +631,7 @@ _pixman_iter_get_scanline_noop (pixman_iter_t *iter, const uint32_t *mask);
 #define FAST_PATH_ROTATE_270_TRANSFORM		(1 << 22)
 #define FAST_PATH_SAMPLES_COVER_CLIP_NEAREST	(1 << 23)
 #define FAST_PATH_SAMPLES_COVER_CLIP_BILINEAR	(1 << 24)
+#define FAST_PATH_BITS_IMAGE			(1 << 25)
 
 #define FAST_PATH_PAD_REPEAT						\
     (FAST_PATH_NO_NONE_REPEAT		|				\
-- 
1.7.1



More information about the Pixman mailing list