Issue metadata
Sign in to add a comment
|
Chrome displays a javascript-generated bitmap darker when its size is > 256 pixels
Reported by
remi.cou...@gmail.com,
Apr 20 2017
|
||||||||||||||||||||||||
Issue descriptionChrome Version : 57.0.2987.132 (Official Build) (32-bit) URLs (if applicable) : https://jsfiddle.net/x8hujef8/ Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: OK Firefox: OK IE: not tested What steps will reproduce the problem? (1) Open https://jsfiddle.net/x8hujef8/ (2) (3) What is the expected result? Display two gray squares of the same color What happens instead? The second square is darker Please provide any additional information below. Attach a screenshot if possible. The bug is not visible on that version: 53.0.2785.143 (Developer Build) Built on Ubuntu , running on Ubuntu 14.04 (64-bit)
,
Apr 20 2017
,
Apr 20 2017
,
Apr 20 2017
,
Apr 20 2017
Looks like the GPU-accelerated version of putImageData is doing a bad gamma conversion or something like that. A bisect would be very helpful.
,
Apr 20 2017
I tested Chrome 57.0.2987.132 (official) and Canary 60.0.3076.0 on Nexus 6P and Nexus 9. It was not reproducible on Nexus 6P, but it was reproducible on both Chrome and Canary on Nexus 9. I'll do a bisect.
,
Apr 21 2017
I am using a OnePlus 3 phone, and it may be that the recent upgrade to Android 7.1.1 caused the bug to appear. One month ago, my web site worked correctly on my phone.
,
Apr 21 2017
The Android version of the Nexus 6P phone is 7.1.2. Please check if you can upgrade to 7.1.2 and if it resolves the issue.
,
Apr 21 2017
OnePlus does not ship upgrades extremely frequently, so I guess it will take at least a couple months before I get a new Android version. Also, many of my customers are going to see the buggy behaviour. I wonder if you can suggest a workaround that would make the putImageData work.
,
Apr 25 2017
,
Apr 25 2017
I think junov@'s theory is correct. I've identified a likely error in the GPU implementation of putImageData. My theory is that putting sRGB encoded data to a non-sRGB surface will linearize the data, making it darker. I'll verify and fix on the Skia side. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by remi.cou...@gmail.com
, Apr 20 2017