Chromium Code Reviews
Descriptioncompositor: Change how attributes are set during ui::Layer::Clone().
A solid-color layer with SK_ColorTRANSPARENT color can be marked as
opaque, as is done in ash-mus to reduce overdraw (crrev.com/456910). When
Clone()ing the Layer, the opaque-ness of the layer is cloned first, and
then the color is set. However, ui::Layer can turn off the opaque-ness
when setting the color, if color is transparent. So, set up color etc.
of a ui::Layer first when cloning, before setting remaining properties.
Without this fix, anytime a window is maximized/restored (which uses
cloned layers), ash loses the overdraw optimization.
BUG=701653
Review-Url: https://codereview.chromium.org/2749993002
Cr-Commit-Position: refs/heads/master@{#457126}
Committed: https://chromium.googlesource.com/chromium/src/+/458e50ea1e561feeb779ff7a26310e59b43fc0d6
Patch Set 1 #Patch Set 2 : test #
Messages
Total messages: 17 (13 generated)
|
||||||||||||||||||||||||||||