[webkit-reviews] review granted: [Bug 98630] [CAIRO] Adjust the source rect size when IMAGE_DECODER_DOWN_SAMPLING is enabled : [Attachment 167506] Patch

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


Martin Robinson <mrobinson at webkit.org> has granted Jaehun Lim
<ljaehun.lim at samsung.com>'s request for review:
Bug 98630: [CAIRO] Adjust the source rect size when IMAGE_DECODER_DOWN_SAMPLING
is enabled
https://bugs.webkit.org/show_bug.cgi?id=98630

Attachment 167506: Patch
https://bugs.webkit.org/attachment.cgi?id=167506&action=review

------- Additional Comments from Martin Robinson <mrobinson at webkit.org>
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.


More information about the webkit-reviews mailing list