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

Unified Diff: cc/raster/tile_task_worker_pool_perftest.cc

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's nits Created 4 years, 8 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
« no previous file with comments | « cc/raster/gpu_rasterizer.cc ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d94455c317d0d723348f7842657eb57efc4bac78..12dd63d2eab8deb024a1435465f02eb1fffce249 100644
--- a/cc/raster/tile_task_worker_pool_perftest.cc
+++ b/cc/raster/tile_task_worker_pool_perftest.cc
@@ -86,9 +86,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();
@@ -106,7 +105,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_;
};
« no previous file with comments | « cc/raster/gpu_rasterizer.cc ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698