WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
234626
_paintBehaviorForDestinationContext should consider kCGContextTypeDisplayList type contexts as potentially being snapshots
https://bugs.webkit.org/show_bug.cgi?id=234626
Summary
_paintBehaviorForDestinationContext should consider kCGContextTypeDisplayList...
Matt Woodrow
Reported
2021-12-22 17:10:00 PST
rdar://83501315
_paintBehaviorForDestinationContext currently always returns `Normal` for contexts that aren't a bitmap context. AppKit now provides a context that is of type kCGContextTypeDisplayList, and we want to still potentially consider it a snapshot draw (if the other conditions below are met).
Attachments
Patch
(2.03 KB, patch)
2021-12-22 17:14 PST
,
Matt Woodrow
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Matt Woodrow
Comment 1
2021-12-22 17:14:02 PST
Created
attachment 447846
[details]
Patch
Matt Woodrow
Comment 2
2021-12-22 17:15:32 PST
No test yet, but happy to add one if anyone has ideas on how to test this. Ideally we'd test that images get sync decoded from AppKit, but it might be sufficient to have a unit test that passes a display list context, and confirms that the PaintBehavior::Snapshotting flag is set (if this is observable somehow).
EWS
Comment 3
2022-01-12 14:38:35 PST
Committed
r287951
(
245980@main
): <
https://commits.webkit.org/245980@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 447846
[details]
.
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