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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 23463042: LayerTreeHost should not modify the LayerTreeSettings object. Instead it should use a temporary va… (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix the case for the method name Created 7 years, 2 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.cc ('k') | no next file » | 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 73c3a30bcd51e8203e75d82d3a6102617a31e144..47f4f7c9a5a8d4307a7d76260a82c8bd13348738 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2115,7 +2115,7 @@ TEST(LayerTreeHostTest, LimitPartialUpdates) {
LayerTreeHostWithProxy host(&client, settings, proxy.Pass());
EXPECT_TRUE(host.InitializeOutputSurfaceIfNeeded());
- EXPECT_EQ(0u, host.settings().max_partial_texture_updates);
+ EXPECT_EQ(0u, host.MaxPartialTextureUpdates());
}
// When partial updates are allowed,
@@ -2133,7 +2133,7 @@ TEST(LayerTreeHostTest, LimitPartialUpdates) {
LayerTreeHostWithProxy host(&client, settings, proxy.Pass());
EXPECT_TRUE(host.InitializeOutputSurfaceIfNeeded());
- EXPECT_EQ(5u, host.settings().max_partial_texture_updates);
+ EXPECT_EQ(5u, host.MaxPartialTextureUpdates());
}
// When partial updates are allowed,
@@ -2151,7 +2151,7 @@ TEST(LayerTreeHostTest, LimitPartialUpdates) {
LayerTreeHostWithProxy host(&client, settings, proxy.Pass());
EXPECT_TRUE(host.InitializeOutputSurfaceIfNeeded());
- EXPECT_EQ(10u, host.settings().max_partial_texture_updates);
+ EXPECT_EQ(10u, host.MaxPartialTextureUpdates());
}
}
@@ -2188,7 +2188,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithDelegatingRendererAndGLContent) {
scoped_ptr<LayerTreeHost> host =
LayerTreeHost::Create(&client, settings, NULL);
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded());
- EXPECT_EQ(0u, host->settings().max_partial_texture_updates);
+ EXPECT_EQ(0u, host->MaxPartialTextureUpdates());
}
TEST(LayerTreeHostTest,
@@ -2201,7 +2201,7 @@ TEST(LayerTreeHostTest,
scoped_ptr<LayerTreeHost> host =
LayerTreeHost::Create(&client, settings, NULL);
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded());
- EXPECT_EQ(0u, host->settings().max_partial_texture_updates);
+ EXPECT_EQ(0u, host->MaxPartialTextureUpdates());
}
class LayerTreeHostTestShutdownWithOnlySomeResourcesEvicted
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698