diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-11-16 15:41:29 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-12-13 17:22:36 +0100 |
commit | f1b66ab795c716d28f99b2e1aef5eefbab0bacd8 (patch) | |
tree | e66f4a75122efca9d338beba5e42e952bf249d69 | |
parent | 53f3d5259e230ab9ad74e7bd0e915d09de75856e (diff) |
remove unused code
-rw-r--r-- | pixman/pixman-general.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/pixman/pixman-general.c b/pixman/pixman-general.c index 1833e1b..562a949 100644 --- a/pixman/pixman-general.c +++ b/pixman/pixman-general.c @@ -135,34 +135,6 @@ general_composite_rect (pixman_implementation_t *imp, if (store) store = _pixman_image_store_scanline; -#if 0 - /* Skip the store step and composite directly into the - * destination if the output format of the compose func matches - * the destination format. - * - * If the destination format is a8r8g8b8 then we can always do - * this. If it is x8r8g8b8, then we can only do it if the - * operator doesn't make use of destination alpha. - */ - if ((dest->bits.format == PIXMAN_a8r8g8b8) || - (dest->bits.format == PIXMAN_x8r8g8b8 && - (op == PIXMAN_OP_OVER || - op == PIXMAN_OP_ADD || - op == PIXMAN_OP_SRC || - op == PIXMAN_OP_CLEAR || - op == PIXMAN_OP_IN_REVERSE || - op == PIXMAN_OP_OUT_REVERSE || - op == PIXMAN_OP_DST))) - { - if (narrow && - !dest->common.alpha_map && - !dest->bits.write_func) - { - store = NULL; - } - } -#endif - if (!store) { bits = dest->bits.bits; @@ -182,23 +154,6 @@ general_composite_rect (pixman_implementation_t *imp, mask->common.component_alpha && PIXMAN_FORMAT_RGB (mask->bits.format); -#if 0 - if (narrow) - { - if (component_alpha) - compose = _pixman_implementation_combine_32_ca; - else - compose = _pixman_implementation_combine_32; - } - else - { - if (component_alpha) - compose = (pixman_combine_32_func_t)_pixman_implementation_combine_64_ca; - else - compose = (pixman_combine_32_func_t)_pixman_implementation_combine_64; - } -#endif - if (component_alpha) compose = _pixman_implementation_combine_ca; else |