WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
226049
sampleColor in PageColorSampler is getting more data than it needs
https://bugs.webkit.org/show_bug.cgi?id=226049
Summary
sampleColor in PageColorSampler is getting more data than it needs
Sam Weinig
Reported
2021-05-20 16:04:33 PDT
Not sure if it happened when I switched it to getPixelBuffer, but sampleColor in PageColorSampler is getting more data than it needs since each snapshot is now returning 16 bytes (a 2x2 of pixels) rather than the 4 bytes it wants.
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2021-05-20 16:12:52 PDT
It's been there all along it seems. And the real issue is that snapshot ImageBuffer is being created at deviceScaleFactor. Probably need to add another option to snapshot at 1x.
Radar WebKit Bug Importer
Comment 2
2021-05-27 16:05:16 PDT
<
rdar://problem/78592414
>
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