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 7c5c1a30bed440ce88c1a1796a02716b6cddf464..41db38b65e9e9c7e3b6f1b41146e8e1a138279cf 100644 |
--- a/cc/trees/layer_tree_host_unittest.cc |
+++ b/cc/trees/layer_tree_host_unittest.cc |
@@ -1265,7 +1265,7 @@ class LayerTreeHostTestDirectRendererAtomicCommit : public LayerTreeHostTest { |
} |
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* impl) OVERRIDE { |
- ASSERT_EQ(0u, layer_tree_host()->settings().max_partial_texture_updates); |
+ ASSERT_EQ(0u, layer_tree_host()->MaxPartialTextureUpdates()); |
TestWebGraphicsContext3D* context = static_cast<TestWebGraphicsContext3D*>( |
impl->output_surface()->context_provider()->Context3d()); |
@@ -2089,7 +2089,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, |
@@ -2107,7 +2107,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, |
@@ -2125,7 +2125,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()); |
} |
} |
@@ -2138,7 +2138,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithGLRenderer) { |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::Create(&client, settings, NULL); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
- EXPECT_EQ(4u, host->settings().max_partial_texture_updates); |
+ EXPECT_EQ(4u, host->MaxPartialTextureUpdates()); |
} |
TEST(LayerTreeHostTest, PartialUpdatesWithSoftwareRenderer) { |
@@ -2150,7 +2150,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithSoftwareRenderer) { |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::Create(&client, settings, NULL); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
- EXPECT_EQ(4u, host->settings().max_partial_texture_updates); |
+ EXPECT_EQ(4u, host->MaxPartialTextureUpdates()); |
} |
TEST(LayerTreeHostTest, PartialUpdatesWithDelegatingRendererAndGLContent) { |
@@ -2162,7 +2162,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, |
@@ -2175,7 +2175,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 |