summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaekyun Kim <tkq.kim@samsung.com>2011-09-22 07:26:55 (GMT)
committerTaekyun Kim <tkq.kim@samsung.com>2011-10-10 03:18:18 (GMT)
commitfa6523d13ae9b7986bb890df5ad66e8599bc3ed8 (patch)
treefda84dddedb9863329434be3e1d2b971fd92998b
parent7272e2fcd2ff8e546cef19929cd370ae2f946135 (diff)
downloadpixman-fa6523d13ae9b7986bb890df5ad66e8599bc3ed8.tar.gz
pixman-fa6523d13ae9b7986bb890df5ad66e8599bc3ed8.tar.xz
Add new fast path flag FAST_PATH_BITS_IMAGE
This fast path flag indicate that type of the image is bits image.
-rw-r--r--pixman/pixman-image.c1
-rw-r--r--pixman/pixman-private.h1
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 69971ea..741fa7e 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 | \