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

Unified Diff: cc/test/layer_tree_test.cc

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 ed97752eb2a5dfd5b3b829a3171df69d0a14a74f..fb4c62565b001d4bae7b1035dbb77c33f42d3c7d 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -251,8 +251,9 @@ class LayerTreeHostClientForTesting : public LayerTreeHostClient {
test_hooks_->ApplyScrollAndScale(scroll_delta, scale);
}
- virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE {
- return test_hooks_->CreateOutputSurface();
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
+ OVERRIDE {
+ return test_hooks_->CreateOutputSurface(fallback);
}
virtual void DidInitializeOutputSurface(bool succeeded) OVERRIDE {
@@ -600,7 +601,7 @@ void LayerTreeTest::RunTest(bool threaded,
AfterTest();
}
-scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() {
+scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface(bool fallback) {
scoped_ptr<FakeOutputSurface> output_surface;
if (delegating_renderer_)
output_surface = FakeOutputSurface::CreateDelegating3d();

Powered by Google App Engine
This is Rietveld 408576698