[Webkit-unassigned] [Bug 98630] [CAIRO] Adjust the source rect size when IMAGE_DECODER_DOWN_SAMPLING is enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 8 11:45:45 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=98630


Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #167506|review?, commit-queue?      |review+, commit-queue+
               Flag|                            |




--- Comment #4 from Martin Robinson <mrobinson at webkit.org>  2012-10-08 11:46:20 PST ---
(From update of attachment 167506)
View in context: https://bugs.webkit.org/attachment.cgi?id=167506&action=review

> Source/WebCore/platform/graphics/cairo/BitmapImageCairo.cpp:109
> +#if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
> +    cairo_surface_t* surface = nativeImage->surface();
> +    IntSize scaledSize(cairo_image_surface_get_width(surface), cairo_image_surface_get_height(surface));
> +    FloatRect adjustedSrcRect = adjustSourceRectForDownSampling(srcRect, scaledSize);
> +#else
> +    FloatRect adjustedSrcRect(srcRect);
> +#endif
> +
> +    context->platformContext()->drawSurfaceToContext(nativeImage->surface(), dstRect, adjustedSrcRect, context);

Okay.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list