[Webkit-unassigned] [Bug 200093] New: Use IWICBitmap (rather than ID2D1Bitmap) for NativeImagePtr on FTW

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 24 12:11:59 PDT 2019


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

            Bug ID: 200093
           Summary: Use IWICBitmap (rather than ID2D1Bitmap) for
                    NativeImagePtr on FTW
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

When I wrote the original Direct2D code, I did not realize that the backing memory for the ID2D1Bitmap was inaccessible since it is effectively a representation of GPU memory. There is no API to access or modify the pixels.

Instead, MSDN documentation indicates that we should be using IWICBitmap objects, which are converted to ID2D1Bitmap objects when things are ready to be rendered.

This makes it possible to use the TextureMapper backend to do efficient compositing and tile drawing, since the data backing the bitmap can now be accessed and manipulated, allowing us to support filters and other effects.

This initial naive patch makes the transition, which allows these features to work. There is a lot of room for performance improvements.

It's likely that WebKit bitmaps should be handled more efficiently than this initial patch, and I look forward to DirectX experts to help me do so! (Help, Sony People!)

-- 
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/20190724/eddc31c3/attachment.html>


More information about the webkit-unassigned mailing list