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

Unified Diff: cc/output/output_surface_unittest.cc

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/output/output_surface_unittest.cc
diff --git a/cc/output/output_surface_unittest.cc b/cc/output/output_surface_unittest.cc
index b0b34baa3f3ea5b583d50be084476dc89638fe56..61b9f861d137fc0b223e008298761bb6dae20224 100644
--- a/cc/output/output_surface_unittest.cc
+++ b/cc/output/output_surface_unittest.cc
@@ -86,7 +86,7 @@ class TestOutputSurface : public OutputSurface {
TEST(OutputSurfaceTest, ClientPointerIndicatesBindToClientSuccess) {
scoped_ptr<TestWebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
TestOutputSurface output_surface(
context3d.PassAs<WebKit::WebGraphicsContext3D>());
@@ -106,7 +106,7 @@ TEST(OutputSurfaceTest, ClientPointerIndicatesBindToClientSuccess) {
TEST(OutputSurfaceTest, ClientPointerIndicatesBindToClientFailure) {
scoped_ptr<TestWebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
// Lose the context so BindToClient fails.
context3d->set_times_make_current_succeeds(0);
@@ -123,7 +123,7 @@ TEST(OutputSurfaceTest, ClientPointerIndicatesBindToClientFailure) {
class InitializeNewContext3D : public ::testing::Test {
public:
InitializeNewContext3D()
- : context3d_(TestWebGraphicsContext3D::Create()),
+ : context3d_(TestWebGraphicsContext3D::CreateShared()),
output_surface_(
scoped_ptr<SoftwareOutputDevice>(new SoftwareOutputDevice)) {}
@@ -178,7 +178,7 @@ TEST_F(InitializeNewContext3D, ClientDeferredInitializeFails) {
TEST(OutputSurfaceTest, BeginFrameEmulation) {
scoped_ptr<TestWebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
TestOutputSurface output_surface(
context3d.PassAs<WebKit::WebGraphicsContext3D>());
@@ -265,7 +265,7 @@ TEST(OutputSurfaceTest, BeginFrameEmulation) {
TEST(OutputSurfaceTest, OptimisticAndRetroactiveBeginFrames) {
scoped_ptr<TestWebGraphicsContext3D> context3d =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
TestOutputSurface output_surface(
context3d.PassAs<WebKit::WebGraphicsContext3D>());
@@ -319,7 +319,7 @@ TEST(OutputSurfaceTest, OptimisticAndRetroactiveBeginFrames) {
TEST(OutputSurfaceTest, MemoryAllocation) {
scoped_ptr<TestWebGraphicsContext3D> scoped_context =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
TestWebGraphicsContext3D* context = scoped_context.get();
TestOutputSurface output_surface(

Powered by Google App Engine
This is Rietveld 408576698