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

Unified Diff: ppapi/thunk/ppb_image_data_api.h

Issue 2618373002: Remove PPB_ImageData_API::GetPlatformCanvas() (Closed)
Patch Set: Created 3 years, 11 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 | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_image_data_api.h
diff --git a/ppapi/thunk/ppb_image_data_api.h b/ppapi/thunk/ppb_image_data_api.h
index ec2a716cf4e34e7e7a8b9101cbd45662e9e38f91..af1eaefb6925c59664b21de2551a7f130d4eadae 100644
--- a/ppapi/thunk/ppb_image_data_api.h
+++ b/ppapi/thunk/ppb_image_data_api.h
@@ -31,19 +31,6 @@ class PPB_ImageData_API {
virtual int32_t GetSharedMemory(base::SharedMemory** shm,
uint32_t* byte_count) = 0;
- // Get the platform-specific canvas that backs this ImageData, if there is
- // one.
- // The canvas will be NULL:
- // * If the image is not mapped.
- // * Within untrusted code (which does not have skia).
- // * If the ImageData is not backed by a platform-specific image buffer.
- // This will be the case for ImageDatas created for use in NaCl.
- // For this last reason, you should prefer GetCanvas any time you don't need
- // a platform-specific canvas (e.g., for use with platform-specific APIs).
- // Anything that relies on having a PlatformCanvas will not work for ImageDat
- // objects created from NaCl.
- virtual SkCanvas* GetPlatformCanvas() = 0;
-
// Get the canvas that backs this ImageData, if there is one.
// The canvas will be NULL:
// * If the image is not mapped.
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698