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

Unified Diff: cc/trees/layer_tree_host_pixeltest_readback.cc

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final merge Created 6 years, 3 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 | « cc/test/fake_content_layer_client.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_readback.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_readback.cc b/cc/trees/layer_tree_host_pixeltest_readback.cc
index 12008f0d7dad50a43a97a9288247918a31cae16b..bbf966809e9397893d7e0fd79154188ffb570d67 100644
--- a/cc/trees/layer_tree_host_pixeltest_readback.cc
+++ b/cc/trees/layer_tree_host_pixeltest_readback.cc
@@ -931,22 +931,8 @@ class LayerTreeHostReadbackDeviceScalePixelTest
}
virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
- LayerImpl* root_impl = host_impl->active_tree()->root_layer();
-
- FakePictureLayerImpl* background_impl =
- static_cast<FakePictureLayerImpl*>(root_impl->children()[0]);
- EXPECT_EQ(device_scale_factor_,
- background_impl->HighResTiling()->contents_scale());
-
- FakePictureLayerImpl* green_impl =
- static_cast<FakePictureLayerImpl*>(background_impl->children()[0]);
- EXPECT_EQ(device_scale_factor_,
- green_impl->HighResTiling()->contents_scale());
-
- FakePictureLayerImpl* blue_impl =
- static_cast<FakePictureLayerImpl*>(green_impl->children()[0]);
EXPECT_EQ(device_scale_factor_,
- blue_impl->HighResTiling()->contents_scale());
+ host_impl->active_tree()->device_scale_factor());
}
float device_scale_factor_;
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698