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

Unified Diff: cc/test/fake_output_surface.h

Issue 11747002: cc: Set the max frames pending from the thread proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 years, 12 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
« no previous file with comments | « cc/scheduler.cc ('k') | cc/thread_proxy.h » ('j') | cc/thread_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index d843ccab131e7958e1189c7a703aecd536c918fa..70e79b161fa48816ce75e02a16d2c1bc5758ca12 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -23,6 +23,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(
@@ -34,6 +42,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(
« no previous file with comments | « cc/scheduler.cc ('k') | cc/thread_proxy.h » ('j') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698