From 2b154b2a2a4c2adf2d145cddbae49767acc67633 Mon Sep 17 00:00:00 2001 From: "boliu@chromium.org" Date: Fri, 7 Jun 2013 09:03:27 +0000 Subject: cc::OutputSurfaceClient::DeferredInitialize SynchronousCompositorOutputSurface first starts in software only mode, then cc::OutputSurfaceClient::InitializeForGL is called to initialize the GL parts. BUG=230197 Review URL: https://chromiumcodereview.appspot.com/14772021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204771 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_output_surface.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cc/test/fake_output_surface.h') diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index 6eff484..7460f93 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -58,9 +58,10 @@ class FakeOutputSurface : public OutputSurface { } static scoped_ptr CreateDeferredGL( + scoped_ptr context3d, scoped_ptr software_device) { scoped_ptr result( - new FakeOutputSurface(software_device.Pass(), false)); + new FakeOutputSurface(context3d.Pass(), software_device.Pass(), false)); result->capabilities_.deferred_gl_initialization = true; return result.Pass(); } @@ -90,6 +91,11 @@ class FakeOutputSurface : public OutputSurface { scoped_ptr software_device, bool has_parent); + FakeOutputSurface( + scoped_ptr context3d, + scoped_ptr software_device, + bool has_parent); + void SendFrameAck(); CompositorFrame last_sent_frame_; -- cgit v1.1