summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_output_surface.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 08:51:28 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 08:51:28 +0000
commit37a8cb5d11d48131e81764b6e6750a684a3f2fdb (patch)
tree4870a85ea5a7e1210589207f98ee236678487cfe /cc/test/fake_output_surface.h
parentbc9439d9b80ce2b058cc66ad826da54343d266a9 (diff)
downloadchromium_src-37a8cb5d11d48131e81764b6e6750a684a3f2fdb.zip
chromium_src-37a8cb5d11d48131e81764b6e6750a684a3f2fdb.tar.gz
chromium_src-37a8cb5d11d48131e81764b6e6750a684a3f2fdb.tar.bz2
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
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r--cc/test/fake_output_surface.h16
1 files changed, 16 insertions, 0 deletions
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<FakeOutputSurface> Create3d() {
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d =
+ FakeWebGraphicsContext3D::Create(
+ WebKit::WebGraphicsContext3D::Attributes())
+ .PassAs<WebKit::WebGraphicsContext3D>();
+ return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), false));
+ }
+
static inline scoped_ptr<FakeOutputSurface> CreateSoftware(
scoped_ptr<SoftwareOutputDevice> 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<FakeOutputSurface> CreateDelegating3d() {
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d =
+ FakeWebGraphicsContext3D::Create(
+ WebKit::WebGraphicsContext3D::Attributes())
+ .PassAs<WebKit::WebGraphicsContext3D>();
+ return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), true));
+ }
+
static inline scoped_ptr<FakeOutputSurface> CreateDelegatingSoftware(
scoped_ptr<SoftwareOutputDevice> software_device) {
return make_scoped_ptr(