[Pixman] [PATCH 1/5] Add new fast path flag FAST_PATH_BITS_IMAGE
Taekyun Kim
podain77 at gmail.com
Tue Aug 30 05:48:37 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 84bacf8..a10ed55 100644
--- a/pixman/pixman-image.c
+++ b/pixman/pixman-image.c
@@ -320,6 +320,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 a25897d..3c82c6b 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -617,6 +617,7 @@ _pixman_iter_get_scanline_noop (pixman_iter_t *iter, const uint32_t *mask);
#define FAST_PATH_ROTATE_90_TRANSFORM (1 << 21)
#define FAST_PATH_ROTATE_180_TRANSFORM (1 << 22)
#define FAST_PATH_ROTATE_270_TRANSFORM (1 << 23)
+#define FAST_PATH_BITS_IMAGE (1 << 24)
#define FAST_PATH_PAD_REPEAT \
(FAST_PATH_NO_NONE_REPEAT | \
--
1.7.1
More information about the Pixman
mailing list