Descriptioncc: Push valid property values when CalcDrawProps skips layer.
If CalcDropProps does not run on a layer for any reason, then we
do not SavePaintProperties() on the layer. When we push the layer's
properties, we can not push the paint properties since they are not
valid. We should instead push the raw value on the layer.
This is safe because if we didn't SavePaintProperties() we will also
not call Update() on the layer, so there is no chance for painting
to change any property values. This is enforced by a new DCHECK()
in Layer::Update() and we have all the subclasses of Layer call up
to the Update() method.
R=boliu, enne
BUG=267574
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215512
Patch Set 1 : pushpaintprops: #Patch Set 2 : pushpaintprops: Simpler to dcheck in TiledLayer #
Total comments: 9
Patch Set 3 : pushpaintprops: stuff #
Total comments: 5
Patch Set 4 : pushpaintprops: nit #Patch Set 5 : pushpaintprops: woo #Patch Set 6 : pushpaintprops: rebase #Patch Set 7 : pushpaintprops: Call SavePaintProps when needed in tests #
Messages
Total messages: 23 (0 generated)
|