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

Unified Diff: cc/test/layer_tree_test.cc

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 0be1ed1167b321169ec135f5de6f2aabe348cd25..582e6b01615e920dd0b56f98da71b2896b968787 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -107,7 +107,7 @@ class ThreadProxyForTest : public ThreadProxy {
};
// Adapts LayerTreeHostImpl for test. Runs real code, then invokes test hooks.
-class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
+class LayerTreeHostImplForTesting : public PseudoSyncingLayerTreeHostImpl {
public:
static scoped_ptr<LayerTreeHostImplForTesting> Create(
TestHooks* test_hooks,
@@ -133,12 +133,12 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
Proxy* proxy,
SharedBitmapManager* manager,
RenderingStatsInstrumentation* stats_instrumentation)
- : LayerTreeHostImpl(settings,
- host_impl_client,
- proxy,
- stats_instrumentation,
- manager,
- 0),
+ : PseudoSyncingLayerTreeHostImpl(settings,
+ host_impl_client,
+ proxy,
+ stats_instrumentation,
+ manager,
+ 0),
test_hooks_(test_hooks),
block_notify_ready_to_activate_for_testing_(false),
notify_ready_to_activate_was_blocked_(false) {}
@@ -748,4 +748,8 @@ void LayerTreeTest::DestroyLayerTreeHost() {
layer_tree_host_.reset();
}
+bool PseudoSyncingLayerTreeHostImpl::IsTesting() {
+ return true;
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698