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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 270823003: cc: Move gpu rasterization flag from LayerImpl to LayerTreeImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index e8c629acae0eab131ca1f36fe30e1e97bd3ec3f0..24f6e4dffac6dee835003b61011d287cf6f5a64e 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -5053,7 +5053,7 @@ class LayerTreeHostTestGpuRasterizationDefault : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_FALSE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_FALSE(layer_impl->use_gpu_rasterization());
}
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
@@ -5061,7 +5061,7 @@ class LayerTreeHostTestGpuRasterizationDefault : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_FALSE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_FALSE(layer_impl->use_gpu_rasterization());
EndTest();
}
@@ -5124,7 +5124,7 @@ class LayerTreeHostTestGpuRasterizationEnabled : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_FALSE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_FALSE(layer_impl->use_gpu_rasterization());
}
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
@@ -5132,7 +5132,7 @@ class LayerTreeHostTestGpuRasterizationEnabled : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_FALSE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_FALSE(layer_impl->use_gpu_rasterization());
EndTest();
}
@@ -5195,7 +5195,7 @@ class LayerTreeHostTestGpuRasterizationForced : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_TRUE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_TRUE(layer_impl->use_gpu_rasterization());
}
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
@@ -5203,7 +5203,7 @@ class LayerTreeHostTestGpuRasterizationForced : public LayerTreeHostTest {
PictureLayerImpl* layer_impl =
static_cast<PictureLayerImpl*>(root->children()[0]);
- EXPECT_TRUE(layer_impl->ShouldUseGpuRasterization());
+ EXPECT_TRUE(layer_impl->use_gpu_rasterization());
EndTest();
}
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698