| 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(
|
|
|