WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
201706
[FTW] Improve Bitmap handling performance
https://bugs.webkit.org/show_bug.cgi?id=201706
Summary
[FTW] Improve Bitmap handling performance
Brent Fulgham
Reported
2019-09-11 17:05:10 PDT
The ImageBufferData implementation does complicated copying of data from GPU ID2D1Bitmap -> CPU ID2D1Bitmap1 and back when the render targets are not compatible. But Direct2D already has a mechanism for sharing between multiple render targets on the same device. This patch makes the following changes: 1. If the render target requested when drawing does not match the target used to create the bitmap, use the CreateSharedBitmap API to create a new bitmap that shares GPU memory with the original bitmap. 2. Since all of our rendering is to an IDXGISurface1, don't bother creating an HWND-backed temporary surface (since it has to be moved to the DXGI surface anyway). Start with the IDXGISurface as the backing store. These changes improve motion mark from 98.07 -> 120.66.
Attachments
Patch
(5.62 KB, patch)
2019-09-11 17:12 PDT
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2019-09-11 17:12:20 PDT
Created
attachment 378603
[details]
Patch
Brent Fulgham
Comment 2
2019-09-11 22:04:35 PDT
Comment on
attachment 378603
[details]
Patch This patch isn't quite right. I see the SharedBitmap sometimes being blank, which is wrong.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug