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

Unified Diff: cc/test/layer_tree_test.h

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sievers review Created 6 years, 6 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 619ae9648d59b0da0251399a4642ee2b7540c4cb..63abc3f9860fff539b66c391651f7392345ebe63 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -92,7 +92,7 @@ class TestHooks : public AnimationDelegate {
base::TimeTicks monotonic_time,
Animation::TargetProperty target_property) OVERRIDE {}
- virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
+ virtual void RequestNewOutputSurface(bool fallback) = 0;
};
class BeginTask;
@@ -181,8 +181,10 @@ class LayerTreeTest : public testing::Test, public TestHooks {
void DestroyLayerTreeHost();
+ // By default, output surface recreation is synchronous.
+ virtual void RequestNewOutputSurface(bool fallback) OVERRIDE;
// Override this for pixel tests, where you need a real output surface.
- virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE;
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback);
// Override this for unit tests, which should not produce pixel output.
virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface(bool fallback);

Powered by Google App Engine
This is Rietveld 408576698