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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2801383002: cc : Delete layer's draw blend mode (Closed)
Patch Set: . Created 3 years, 8 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
Index: cc/trees/layer_tree_host_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 240309cbb9f617909c74f9ace90a6c9ca3b3e630..e6f69f6dd998ff37a70881111a190ff2fd6ec5ae 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -1580,13 +1580,11 @@ TEST_F(LayerTreeHostCommonTest, RenderSurfaceForBlendMode) {
ExecuteCalculateDrawProperties(root);
// Since the child layer has a blend mode other than normal, it should get
- // its own render surface. Also, layer's draw_properties should contain the
- // default blend mode, since the render surface becomes responsible for
- // applying the blend mode.
+ // its own render surface.
ASSERT_TRUE(child->GetRenderSurface());
EXPECT_EQ(1.0f, child->draw_opacity());
EXPECT_EQ(0.5f, child->GetRenderSurface()->draw_opacity());
- EXPECT_EQ(SkBlendMode::kSrcOver, child->draw_blend_mode());
+ EXPECT_EQ(SkBlendMode::kMultiply, child->GetRenderSurface()->BlendMode());
}
TEST_F(LayerTreeHostCommonTest, RenderSurfaceDrawOpacity) {

Powered by Google App Engine
This is Rietveld 408576698