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

Unified Diff: cc/trees/layer_tree_host_unittest.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/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 7c940bb293b7c32b18a626c1a432f8158c74633f..94775a9a767c4ffa98d814d856a22bee771763da 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2390,7 +2390,8 @@ class MockIOSurfaceWebGraphicsContext3D : public FakeWebGraphicsContext3D {
class LayerTreeHostTestIOSurfaceDrawing : public LayerTreeHostTest {
protected:
- virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE {
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
+ OVERRIDE {
scoped_ptr<MockIOSurfaceWebGraphicsContext3D> context(
new MockIOSurfaceWebGraphicsContext3D);
mock_context_ = context.get();
@@ -2575,7 +2576,8 @@ class LayerTreeHostTestAsyncReadback : public LayerTreeHostTest {
EXPECT_EQ(4u, callbacks_.size());
}
- virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE {
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
+ OVERRIDE {
if (use_gl_renderer_)
return FakeOutputSurface::Create3d().PassAs<OutputSurface>();
return FakeOutputSurface::CreateSoftware(
@@ -3110,7 +3112,8 @@ class LayerTreeHostTestDeferredInitialize : public LayerTreeHostTest {
PostSetNeedsCommitToMainThread();
}
- virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE {
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
+ OVERRIDE {
scoped_ptr<TestWebGraphicsContext3D> context3d(
TestWebGraphicsContext3D::Create());
context3d->set_support_swapbuffers_complete_callback(false);

Powered by Google App Engine
This is Rietveld 408576698