[Webkit-unassigned] [Bug 113657] New: SVGImage::nativeImageForCurrentFrame() does not work if using DontCopyBackingStore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 31 01:37:26 PDT 2013


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

           Summary: SVGImage::nativeImageForCurrentFrame() does not work
                    if using DontCopyBackingStore
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dchris at gmail.com
                CC: zimmermann at kde.org, senorblanco at chromium.org,
                    pdr at google.com
        Depends on: 113420


The current implementation of SVGImage::nativeImageForCurrentFrame() creates a temporary ImageBuffer, draw the SVG to it and then returns a pointer to the native image using:
ImageBuffer::copyImage(CopyBackingStore)->nativeImageForCurrentFrame();

Using CopyBackingStore here is suboptimal. However, DontCopyBackingStore does not work in this case, at least with Skia implementation. The reason for this is that the underlying SkBitmap pixels do not get copied when creating the new Image but the pixels get freed when the temporary ImageBuffer gets destroyed. Therefore, the returned native image has no valid pixel data.

-- 
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