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

Unified Diff: content/renderer/pepper/ppb_image_data_impl.h

Issue 1862693002: Replace skia::RefPtr with sk_sp<> in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unget 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: content/renderer/pepper/ppb_image_data_impl.h
diff --git a/content/renderer/pepper/ppb_image_data_impl.h b/content/renderer/pepper/ppb_image_data_impl.h
index 3306a8d775ca97e92fb368a2e81b3e1d52911735..13a1e0cdf7b36221235d30f14aa10c1eb9d3cc11 100644
--- a/content/renderer/pepper/ppb_image_data_impl.h
+++ b/content/renderer/pepper/ppb_image_data_impl.h
@@ -15,7 +15,6 @@
#include "ppapi/shared_impl/ppb_image_data_shared.h"
#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_image_data_api.h"
-#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkCanvas.h"
class SkBitmap;
@@ -145,7 +144,7 @@ class ImageDataPlatformBackend : public PPB_ImageData_Impl::Backend {
scoped_ptr<TransportDIB> dib_;
// When the device is mapped, this is the image. Null when umapped.
- skia::RefPtr<SkCanvas> mapped_canvas_;
+ sk_sp<SkCanvas> mapped_canvas_;
DISALLOW_COPY_AND_ASSIGN(ImageDataPlatformBackend);
};
@@ -175,7 +174,7 @@ class ImageDataSimpleBackend : public PPB_ImageData_Impl::Backend {
scoped_ptr<base::SharedMemory> shared_memory_;
// skia_bitmap_ is backed by shared_memory_.
SkBitmap skia_bitmap_;
- skia::RefPtr<SkCanvas> skia_canvas_;
+ sk_sp<SkCanvas> skia_canvas_;
uint32_t map_count_;
DISALLOW_COPY_AND_ASSIGN(ImageDataSimpleBackend);
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/ppb_image_data_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698