New issue
Advanced search Search tips

Issue 747383 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 696603
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Sharp transitions between colors in SVG linearGravient are blurry in Chrome

Reported by lambertj...@gmail.com, Jul 21 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Go to https://codepen.io/julamb/details/yoBLwQ/
2. Note that the transitions between colors are blury.
3. Click the "change view" button in the top right corner, transitions become sharp!

What is the expected behavior?

What went wrong?
The transition should be sharp from the beginning (as they are in Firefox or Safari). Also, I can't understand why interacting with the main page would modify the rendering of the SVG that is in a iFrame. 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.115  Channel: stable
OS Version: OS X 10.12.5
Flash Version: 

Let me know if additional information is needed.
 

Comment 1 by f...@opera.com, Jul 21 2017

Cc: fmalita@chromium.org
Components: Internals>Skia
IIRC, gradients rendered via the software code-path will handle this correctly, while the hardware/GPU code-path will not (yet.) Not quite sure why we'd need to fallback when the "change view" menu is shown though, so maybe there's some other issue at play...
Mergedinto: 696603
Status: Duplicate (was: Unconfirmed)
Yup, the blurriness is related to Ganesh gradient limitations.  As a test, if you disable GPU rasterization, the hard stops should become sharp.

"Change view" must be causing a software fallback somehow (possibly Mac-specific?  I can't repro on Linux).

Disabling GPU rasterization makes the hard stops sharp indeed. Thanks!
As a developer, is there a hack to force Chromium not to use GPU rasterization for a given svg/page?

Sign in to add a comment