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

Unified Diff: cc/layer_tree_host_unittest.cc

Issue 11573019: cc: Fix a number of tests that need content bounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only touch one file Created 8 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_unittest.cc
diff --git a/cc/layer_tree_host_unittest.cc b/cc/layer_tree_host_unittest.cc
index 41744911e8c1e6414d4d0205f2add1044be15241..07c0395f67809408924a1e8b6e73ed07d98f9a6a 100644
--- a/cc/layer_tree_host_unittest.cc
+++ b/cc/layer_tree_host_unittest.cc
@@ -1310,6 +1310,10 @@ public:
m_childLayer->setAnchorPoint(gfx::PointF(0, 0));
m_layerTreeHost->setRootLayer(m_rootLayer);
+
+ ASSERT_TRUE(m_layerTreeHost->initializeRendererIfNeeded());
+ ResourceUpdateQueue queue;
+ m_layerTreeHost->updateLayers(queue, std::numeric_limits<size_t>::max());
postSetNeedsCommitToMainThread();
}
@@ -1407,6 +1411,9 @@ public:
m_layerTreeHost->setRootLayer(m_layer);
m_layerTreeHost->setViewportSize(gfx::Size(10, 10), gfx::Size(10, 10));
+ ASSERT_TRUE(m_layerTreeHost->initializeRendererIfNeeded());
+ ResourceUpdateQueue queue;
+ m_layerTreeHost->updateLayers(queue, std::numeric_limits<size_t>::max());
postSetNeedsCommitToMainThread();
postSetNeedsRedrawToMainThread();
}
@@ -1511,6 +1518,9 @@ public:
setLayerPropertiesForTesting(m_parent.get(), 0, identityMatrix, gfx::PointF(0, 0), gfx::PointF(0, 0), gfx::Size(10, 20), true);
setLayerPropertiesForTesting(m_child.get(), m_parent.get(), identityMatrix, gfx::PointF(0, 0), gfx::PointF(0, 10), gfx::Size(10, 10), false);
+ ASSERT_TRUE(m_layerTreeHost->initializeRendererIfNeeded());
+ ResourceUpdateQueue queue;
+ m_layerTreeHost->updateLayers(queue, std::numeric_limits<size_t>::max());
postSetNeedsCommitToMainThread();
postSetNeedsRedrawToMainThread();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698