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 bde81b43fb62c550ca95f29970a585b655871373..7f0b544c395b34855f6ff062936a80e6526450ad 100644 |
--- a/ppapi/proxy/ppb_image_data_proxy.cc |
+++ b/ppapi/proxy/ppb_image_data_proxy.cc |
@@ -391,10 +391,8 @@ void* PlatformImageData::Map() { |
return NULL; |
const bool is_opaque = false; |
- mapped_canvas_ = |
- sk_sp<SkCanvas>(transport_dib_->GetPlatformCanvas(desc_.size.width, |
- desc_.size.height, |
- is_opaque)); |
+ mapped_canvas_.reset(transport_dib_->GetPlatformCanvas( |
+ desc_.size.width, desc_.size.height, is_opaque)); |
if (!mapped_canvas_.get()) |
return NULL; |
} |