Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Issue 1125283015: Update Layer::GetTargetColor to account for animation state (Closed)

Created:
5 years, 7 months ago by jonross
Modified:
5 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org, jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/31048b60684f840102adffa211f746ec4218abbd Cr-Commit-Position: refs/heads/master@{#330679}

Patch Set 1 #

Patch Set 2 : Add Layer unittests #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -1 line) Patch
M ui/compositor/layer.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/compositor/layer_owner_unittest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 2 chunks +73 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
jonross
Hi Dana, I created a new review for my fix to LAYER_SOLID_COLOR having incorrect color ...
5 years, 7 months ago (2015-05-19 16:09:54 UTC) #2
jonross
5 years, 7 months ago (2015-05-19 16:11:22 UTC) #3
danakj
Can you add a simple layer_unittest also that checks GetTargetColor returns the right thing when ...
5 years, 7 months ago (2015-05-19 17:44:40 UTC) #4
jonross
Added tests to layer_unittests, to confirm current/target value. Both when not animating, and while animating. ...
5 years, 7 months ago (2015-05-19 20:53:52 UTC) #5
danakj
LGTM thanks! https://codereview.chromium.org/1125283015/diff/20001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/1125283015/diff/20001/ui/compositor/layer_unittest.cc#newcode1618 ui/compositor/layer_unittest.cc:1618: ASSERT_FALSE(root->fills_bounds_opaquely()); EXPECT rather than ASSERT everywhere
5 years, 7 months ago (2015-05-19 21:56:25 UTC) #6
jonross
https://codereview.chromium.org/1125283015/diff/20001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/1125283015/diff/20001/ui/compositor/layer_unittest.cc#newcode1618 ui/compositor/layer_unittest.cc:1618: ASSERT_FALSE(root->fills_bounds_opaquely()); On 2015/05/19 21:56:25, danakj wrote: > EXPECT rather ...
5 years, 7 months ago (2015-05-20 01:03:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125283015/40001
5 years, 7 months ago (2015-05-20 01:05:52 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-20 02:09:35 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 02:10:29 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/31048b60684f840102adffa211f746ec4218abbd
Cr-Commit-Position: refs/heads/master@{#330679}

Powered by Google App Engine
This is Rietveld 408576698