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

Unified Diff: cc/test/fake_output_surface.h

Issue 18796008: Implement shareResources==true in TestWebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index 25ee2019f2e56e829825714ff664c1b46a3c6ed6..3ac97067e5a5f164b7a86c337ae78acb58190771 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -26,8 +26,7 @@ class FakeOutputSurface : public OutputSurface {
static scoped_ptr<FakeOutputSurface> Create3d() {
scoped_ptr<WebKit::WebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create(
- WebKit::WebGraphicsContext3D::Attributes())
+ TestWebGraphicsContext3D::CreateShared()
.PassAs<WebKit::WebGraphicsContext3D>();
return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), false));
}
@@ -45,8 +44,7 @@ class FakeOutputSurface : public OutputSurface {
static scoped_ptr<FakeOutputSurface> CreateDelegating3d() {
scoped_ptr<WebKit::WebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create(
- WebKit::WebGraphicsContext3D::Attributes())
+ TestWebGraphicsContext3D::CreateShared()
.PassAs<WebKit::WebGraphicsContext3D>();
return make_scoped_ptr(new FakeOutputSurface(context3d.Pass(), true));
}
@@ -109,10 +107,7 @@ class FakeOutputSurface : public OutputSurface {
};
static inline scoped_ptr<cc::OutputSurface> CreateFakeOutputSurface() {
- return FakeOutputSurface::Create3d(
- TestWebGraphicsContext3D::Create(
- WebKit::WebGraphicsContext3D::Attributes())
- .PassAs<WebKit::WebGraphicsContext3D>()).PassAs<cc::OutputSurface>();
+ return FakeOutputSurface::Create3d().PassAs<cc::OutputSurface>();
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698