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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « cc/trees/effect_node.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b7a4fcc195b2e14e310d59705ac7e2238a11801..84a96f5bd15af6daa8ebdbf03b45d6f2aedea9fa 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -1567,7 +1567,7 @@ TEST_F(LayerTreeHostCommonTest, RenderSurfaceForBlendMode) {
root->SetBounds(gfx::Size(10, 10));
child->SetBounds(gfx::Size(10, 10));
child->SetDrawsContent(true);
- child->test_properties()->blend_mode = SkXfermode::kMultiply_Mode;
+ child->test_properties()->blend_mode = SkBlendMode::kMultiply;
child->test_properties()->opacity = 0.5f;
child->test_properties()->force_render_surface = true;
ExecuteCalculateDrawProperties(root);
@@ -1579,7 +1579,7 @@ TEST_F(LayerTreeHostCommonTest, RenderSurfaceForBlendMode) {
ASSERT_TRUE(child->render_surface());
EXPECT_EQ(1.0f, child->draw_opacity());
EXPECT_EQ(0.5f, child->render_surface()->draw_opacity());
- EXPECT_EQ(SkXfermode::kSrcOver_Mode, child->draw_blend_mode());
+ EXPECT_EQ(SkBlendMode::kSrcOver, child->draw_blend_mode());
}
TEST_F(LayerTreeHostCommonTest, RenderSurfaceDrawOpacity) {
« no previous file with comments | « cc/trees/effect_node.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698