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

Unified Diff: ppapi/proxy/ppb_image_data_proxy.cc

Issue 2509983004: Revert "Change call-sites now that SkCanvas is not ref-counted" (Closed)
Patch Set: Created 4 years, 1 month 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 | « ppapi/proxy/ppb_image_data_proxy.h ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_image_data_proxy.cc
diff --git a/ppapi/proxy/ppb_image_data_proxy.cc b/ppapi/proxy/ppb_image_data_proxy.cc
index b4415fdada0f5c3cac0b14d47ca9bdf82cb9bd4c..bde81b43fb62c550ca95f29970a585b655871373 100644
--- a/ppapi/proxy/ppb_image_data_proxy.cc
+++ b/ppapi/proxy/ppb_image_data_proxy.cc
@@ -391,8 +391,10 @@ void* PlatformImageData::Map() {
return NULL;
const bool is_opaque = false;
- mapped_canvas_ = transport_dib_->GetPlatformCanvas(
- desc_.size.width, desc_.size.height, is_opaque);
+ mapped_canvas_ =
+ sk_sp<SkCanvas>(transport_dib_->GetPlatformCanvas(desc_.size.width,
+ desc_.size.height,
+ is_opaque));
if (!mapped_canvas_.get())
return NULL;
}
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.h ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698