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

Unified Diff: cc/test/test_in_process_context_provider.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: rebase 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
Index: cc/test/test_in_process_context_provider.cc
diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc
index c3a02ad09f3651f57e8ebb76e14b7adf4fc5cb15..017a384da8dcbaee3b815349b78b7a7b5f7b7d11 100644
--- a/cc/test/test_in_process_context_provider.cc
+++ b/cc/test/test_in_process_context_provider.cc
@@ -87,7 +87,7 @@ class GrContext* TestInProcessContextProvider::GrContext() {
sk_sp<GrGLInterface> interface(
skia_bindings::CreateGLES2InterfaceBindings(ContextGL()));
- gr_context_ = skia::AdoptRef(GrContext::Create(
+ gr_context_ = sk_sp<::GrContext>(GrContext::Create(
// GrContext takes ownership of |interface|.
kOpenGL_GrBackend, reinterpret_cast<GrBackendContext>(interface.get())));
return gr_context_.get();

Powered by Google App Engine
This is Rietveld 408576698