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

Unified Diff: cc/layer_iterator_unittest.cc

Issue 11316171: Don't create render passes for transparent images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing code review. Created 8 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
Index: cc/layer_iterator_unittest.cc
diff --git a/cc/layer_iterator_unittest.cc b/cc/layer_iterator_unittest.cc
index 0d5be646091182ae5c509da7cb4d5780b5d14912..cec920e101d83321ca753ffdcba705b919785975 100644
--- a/cc/layer_iterator_unittest.cc
+++ b/cc/layer_iterator_unittest.cc
@@ -215,7 +215,8 @@ TEST(LayerIteratorTest, complexTreeMultiSurface)
rootLayer->addChild(root2);
rootLayer->addChild(root3);
root2->setDrawsContent(false);
- root2->setOpacity(0.5); // Force the layer to own a new surface.
+ root2->setOpacity(0.5);
+ root2->setForceRenderSurface(true); // Force the layer to own a new surface.
root2->addChild(root21);
root2->addChild(root22);
root2->addChild(root23);

Powered by Google App Engine
This is Rietveld 408576698