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

Unified Diff: webkit/plugins/ppapi/ppb_image_data_impl.h

Issue 16605006: Clean up Pepper ImageData resource class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux, allow both kinds of ImageData on host side. Created 7 years, 6 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: webkit/plugins/ppapi/ppb_image_data_impl.h
diff --git a/webkit/plugins/ppapi/ppb_image_data_impl.h b/webkit/plugins/ppapi/ppb_image_data_impl.h
index bbcf7e6cfbdb80fbd73719632a70be2df22b7f91..5bc92992c038ed66fe944753d363033d277a95ab 100644
--- a/webkit/plugins/ppapi/ppb_image_data_impl.h
+++ b/webkit/plugins/ppapi/ppb_image_data_impl.h
@@ -63,12 +63,13 @@ class WEBKIT_PLUGINS_EXPORT PPB_ImageData_Impl
const PP_Size& size,
PP_Bool init_to_zero);
- // Use this to create an ImageData for use with NaCl. This is backed by a
- // simple shared memory buffer.
- static PP_Resource CreateNaCl(PP_Instance pp_instance,
- PP_ImageDataFormat format,
- const PP_Size& size,
- PP_Bool init_to_zero);
+ // Use this to create an ImageData when access to the platform-specific canvas
+ // isn't required. This is backed by a simple shared memory buffer. This is
+ // the only kind of ImageData that can be used by NaCl plugins.
+ static PP_Resource CreateSimple(PP_Instance pp_instance,
+ PP_ImageDataFormat format,
+ const PP_Size& size,
+ PP_Bool init_to_zero);
int width() const { return width_; }
int height() const { return height_; }

Powered by Google App Engine
This is Rietveld 408576698