Update Layer::GetTargetColor to account for animation state
Layer::GetTargetColor currently always checks the LayerAnimator for a target color. When the layer is not animating, the animator's defaults do not necessarily reflect the current state of the layer. This change updates Layer::GetTargetColor to return the current color if not animating. TEST=LayerOwnerTest, RecreateLayerSolidColorWithChangedCCLayerHonorsTargets, ran compositor_unittests, ash_unittests, views_unittests BUG=chrome-os-partner:40118 Review URL: https://codereview.chromium.org/1125283015 Cr-Commit-Position: refs/heads/master@{#330679}
Showing
Please register or sign in to comment