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

Unified Diff: cc/test/layer_tree_test.h

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.h
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index 8f38dda4999dd8648aac24224560414e7a49b2e8..b29eaa70b31b4e5a73e217b42a4daa30d7bc9e46 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -97,6 +97,42 @@ class TestHooks : public AnimationDelegate {
virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
};
+class PseudoSyncingLayerTreeHostImpl : public LayerTreeHostImpl {
+ public:
+ static scoped_ptr<LayerTreeHostImpl> Create(
+ const LayerTreeSettings& settings,
+ LayerTreeHostImplClient* client,
+ Proxy* proxy,
+ RenderingStatsInstrumentation* rendering_stats_instrumentation,
+ SharedBitmapManager* manager,
+ int id) {
+ return make_scoped_ptr(static_cast<LayerTreeHostImpl*>(
+ new PseudoSyncingLayerTreeHostImpl(settings,
+ client,
+ proxy,
+ rendering_stats_instrumentation,
+ manager,
+ id)));
+ }
+
+ virtual bool IsTesting() OVERRIDE;
+
+ protected:
+ PseudoSyncingLayerTreeHostImpl(
+ const LayerTreeSettings& settings,
+ LayerTreeHostImplClient* client,
+ Proxy* proxy,
+ RenderingStatsInstrumentation* rendering_stats_instrumentation,
+ SharedBitmapManager* manager,
+ int id)
+ : LayerTreeHostImpl(settings,
+ client,
+ proxy,
+ rendering_stats_instrumentation,
+ manager,
+ id) {}
+};
+
class BeginTask;
class LayerTreeHostClientForTesting;
class TimeoutTask;

Powered by Google App Engine
This is Rietveld 408576698