| Index: content/browser/gpu/gpu_ipc_browsertests.cc
|
| diff --git a/content/browser/gpu/gpu_ipc_browsertests.cc b/content/browser/gpu/gpu_ipc_browsertests.cc
|
| index 1d77399e2bbde408c66574bdf3aadb20140abfe5..c9ece28b4c47e59aadf79f517116ccaa7a09aa02 100644
|
| --- a/content/browser/gpu/gpu_ipc_browsertests.cc
|
| +++ b/content/browser/gpu/gpu_ipc_browsertests.cc
|
| @@ -237,16 +237,16 @@ IN_PROC_BROWSER_TEST_F(BrowserGpuChannelHostFactoryTest,
|
| skia::RefPtr<GrContext> gr_context = skia::SharePtr(provider->GrContext());
|
|
|
| SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100);
|
| - skia::RefPtr<SkSurface> surface = skia::AdoptRef(SkSurface::NewRenderTarget(
|
| - gr_context.get(), SkBudgeted::kNo, info));
|
| + sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(
|
| + gr_context.get(), SkBudgeted::kNo, info);
|
| EXPECT_TRUE(surface);
|
|
|
| // Destroy the GL context after we made a surface.
|
| provider = nullptr;
|
|
|
| // New surfaces will fail to create now.
|
| - skia::RefPtr<SkSurface> surface2 = skia::AdoptRef(
|
| - SkSurface::NewRenderTarget(gr_context.get(), SkBudgeted::kNo, info));
|
| + sk_sp<SkSurface> surface2 =
|
| + SkSurface::MakeRenderTarget(gr_context.get(), SkBudgeted::kNo, info);
|
| EXPECT_FALSE(surface2);
|
|
|
| // Drop our reference to the gr_context also.
|
|
|