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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 2921353003: [Merge to M60] Cloning a ui::Layer should also clone its target temperature (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 4efea4ac890358024196aab88ed44b761a611250..f847d75f647fdc5caa785a2f9ba9f43b1bc6a54e 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -733,6 +733,8 @@ TEST_F(LayerWithDelegateTest, Cloning) {
layer->SetTransform(transform);
layer->SetColor(SK_ColorRED);
layer->SetLayerInverted(true);
+ const float temperature = 0.8f;
+ layer->SetLayerTemperature(temperature);
auto clone = layer->Clone();
@@ -741,6 +743,7 @@ TEST_F(LayerWithDelegateTest, Cloning) {
EXPECT_EQ(SK_ColorRED, clone->background_color());
EXPECT_EQ(SK_ColorRED, clone->GetTargetColor());
EXPECT_TRUE(clone->layer_inverted());
+ EXPECT_FLOAT_EQ(temperature, clone->GetTargetTemperature());
layer->SetTransform(gfx::Transform());
layer->SetColor(SK_ColorGREEN);
« no previous file with comments | « ui/compositor/layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698