[Webkit-unassigned] [Bug 215015] New: [CG] Avoid creating a sub-image when drawing a small scaled sub-rect from a native image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 31 02:18:55 PDT 2020


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

            Bug ID: 215015
           Summary: [CG] Avoid creating a sub-image when drawing a small
                    scaled sub-rect from a native image
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

The reason for creating the sub-image in GraphicsContext::drawNativeImage() is to have a better image interpolation for the scaled sub-rect. For small destRect, the interpolation on the original image is almost the same as the interpolation on the sub-image. So we should avoid creating the sub-image if destRect.area() is less than some minimum value. This will benefit the case of drawing many small rectangles from a large sprite image.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200731/8ae9658e/attachment-0001.htm>


More information about the webkit-unassigned mailing list