Bug 226049
| Summary: | sampleColor in PageColorSampler is getting more data than it needs | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Weinig <sam> |
| Component: | WebCore Misc. | Assignee: | Sam Weinig <sam> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sam Weinig
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
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
<rdar://problem/78592414>