diff options
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index ab91089..79b0f39 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -80,6 +80,14 @@ class FakeOutputSurface : public OutputSurface { return surface.Pass(); } + static scoped_ptr<FakeOutputSurface> CreateOffscreen( + scoped_ptr<TestWebGraphicsContext3D> context) { + scoped_ptr<FakeOutputSurface> surface(new FakeOutputSurface( + TestContextProvider::Create(context.Pass()), false)); + surface->capabilities_.uses_default_gl_framebuffer = false; + return surface.Pass(); + } + CompositorFrame& last_sent_frame() { return last_sent_frame_; } size_t num_sent_frames() { return num_sent_frames_; } |