| Index: cc/raster/tile_task_worker_pool_perftest.cc
|
| diff --git a/cc/raster/tile_task_worker_pool_perftest.cc b/cc/raster/tile_task_worker_pool_perftest.cc
|
| index 2335ca75f70d29972cff9dae102905469c0718e6..03ec57071fef8050f8eecbe30260eadd07b35b66 100644
|
| --- a/cc/raster/tile_task_worker_pool_perftest.cc
|
| +++ b/cc/raster/tile_task_worker_pool_perftest.cc
|
| @@ -87,9 +87,8 @@ class PerfContextProvider : public ContextProvider {
|
| if (gr_context_)
|
| return gr_context_.get();
|
|
|
| - skia::RefPtr<const GrGLInterface> null_interface =
|
| - skia::AdoptRef(GrGLCreateNullInterface());
|
| - gr_context_ = skia::AdoptRef(GrContext::Create(
|
| + sk_sp<const GrGLInterface> null_interface(GrGLCreateNullInterface());
|
| + gr_context_ = sk_sp<class GrContext>(GrContext::Create(
|
| kOpenGL_GrBackend,
|
| reinterpret_cast<GrBackendContext>(null_interface.get())));
|
| return gr_context_.get();
|
| @@ -107,7 +106,7 @@ class PerfContextProvider : public ContextProvider {
|
| ~PerfContextProvider() override {}
|
|
|
| std::unique_ptr<PerfGLES2Interface> context_gl_;
|
| - skia::RefPtr<class GrContext> gr_context_;
|
| + sk_sp<class GrContext> gr_context_;
|
| TestContextSupport support_;
|
| base::Lock context_lock_;
|
| };
|
|
|