[Pixman] [PATCH] Require destination images to be bitmaps

Ben Avison bavison at riscosopen.org
Wed Apr 22 16:53:59 PDT 2015


Perhaps this was considered too obvious to check, but it's possible to
add a test without imposing any run-time overhead by adding
FAST_PATH_BITS_IMAGE to FAST_PATH_STD_DEST_FLAGS.
---
 pixman/pixman-private.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index fdc966a..5e4616f 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -731,7 +731,8 @@ _pixman_iter_init_bits_stride (pixman_iter_t *iter, const pixman_iter_info_t *in
 #define FAST_PATH_STD_DEST_FLAGS					\
     (FAST_PATH_NO_ACCESSORS		|				\
      FAST_PATH_NO_ALPHA_MAP		|				\
-     FAST_PATH_NARROW_FORMAT)
+     FAST_PATH_NARROW_FORMAT            |                               \
+     FAST_PATH_BITS_IMAGE)
 
 #define SOURCE_FLAGS(format)						\
     (FAST_PATH_STANDARD_FLAGS |						\
-- 
1.7.5.4



More information about the Pixman mailing list