From 37a8cb5d11d48131e81764b6e6750a684a3f2fdb Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 16 Jan 2013 08:51:28 +0000 Subject: cc: Set the max frames pending from the thread proxy. When a parent compositor is present (ie, ubercompositor), throttle to a single pending frame. Tests: LayerTreeHostTestMaxPendingFrames.DelegatingRenderer LayerTreeHostTestMaxPendingFrames.GLRenderer BUG=123444 Review URL: https://chromiumcodereview.appspot.com/11747002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177104 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_output_surface.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (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 0cfb41f..a2dd67c 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -24,6 +24,14 @@ class FakeOutputSurface : public OutputSurface { return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), false)); } + static inline scoped_ptr Create3d() { + scoped_ptr context3d = + FakeWebGraphicsContext3D::Create( + WebKit::WebGraphicsContext3D::Attributes()) + .PassAs(); + return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), false)); + } + static inline scoped_ptr CreateSoftware( scoped_ptr software_device) { return make_scoped_ptr( @@ -35,6 +43,14 @@ class FakeOutputSurface : public OutputSurface { return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), true)); } + static inline scoped_ptr CreateDelegating3d() { + scoped_ptr context3d = + FakeWebGraphicsContext3D::Create( + WebKit::WebGraphicsContext3D::Attributes()) + .PassAs(); + return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), true)); + } + static inline scoped_ptr CreateDelegatingSoftware( scoped_ptr software_device) { return make_scoped_ptr( -- cgit v1.1