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

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 patch to pass tests 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
« cc/trees/layer_tree_host.cc ('K') | « 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 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
« cc/trees/layer_tree_host.cc ('K') | « cc/trees/layer_tree_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698