WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
203884
[Cairo] Cairo graphics backend uses ImageBuffer::copyImage just to access native image buffer handles
https://bugs.webkit.org/show_bug.cgi?id=203884
Summary
[Cairo] Cairo graphics backend uses ImageBuffer::copyImage just to access nat...
Chris Lord
Reported
2019-11-06 02:50:08 PST
This pattern occurs a lot in the Cairo graphics backend: RefPtr<Image> image = layerImage.copyImage(DontCopyBackingStore); if (!image) return; if (auto surface = image->nativeImageForCurrentFrame()) { ... } Which is fine on a single thread, but ImageSource is not usable off-main-thread, so any drawing that calls functions that do this will cause an assert on a debug build. I think its use of ImageSource would be safe off-main-thread, but it's overkill just to get the native image handle. This is hampering OffscreenCanvas.
Attachments
Patch
(7.06 KB, patch)
2019-11-06 03:01 PST
,
Chris Lord
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Lord
Comment 1
2019-11-06 03:01:43 PST
Created
attachment 382908
[details]
Patch
WebKit Commit Bot
Comment 2
2019-11-06 05:13:17 PST
Comment on
attachment 382908
[details]
Patch Clearing flags on attachment: 382908 Committed
r252136
: <
https://trac.webkit.org/changeset/252136
>
WebKit Commit Bot
Comment 3
2019-11-06 05:13:19 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4
2019-11-06 05:14:18 PST
<
rdar://problem/56940631
>
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