Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set contents_opaque(false) if the background color is transparent
Previously if a layer's background was transparent and the layer is opaque, we used the layer_tree_host's background as SafeOpaqueBackgroundColor(). However, the color might be dramatically different from the normal color in the layer, causing edge artifacts. Now set contents_opaque(false) in the case. The case of opaque layer not having a background color only happens in cases such as the layer has an opaque background image. In such cases, using any heuristic color as the SafeOpaqueBackgroundColor() may be inappropriate because the color may be visibly different from the background image. This also prevents seams between adjacent image layers when the layers layer have non-integral to-screen transforms. Bug: 1330509 Change-Id: I91edeb1c02da5eaa38ea0431f0559775b273f418
- Loading branch information