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

Unified Diff: ppapi/shared_impl/ppb_image_data_shared.h

Issue 16605006: Clean up Pepper ImageData resource class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: ppapi/shared_impl/ppb_image_data_shared.h
diff --git a/ppapi/shared_impl/ppb_image_data_shared.h b/ppapi/shared_impl/ppb_image_data_shared.h
index 45cd8758e1202cfe4e349bb144b616dc1d123cdc..6f0c19bfb33cc45f1f50b9ebf7e96742b29a749c 100644
--- a/ppapi/shared_impl/ppb_image_data_shared.h
+++ b/ppapi/shared_impl/ppb_image_data_shared.h
@@ -22,6 +22,18 @@ namespace ppapi {
// settings.
class PPAPI_SHARED_EXPORT PPB_ImageData_Shared {
public:
+ enum ImageDataType {
+ // An ImageData backed by a PlatformCanvas. You must create this type if
+ // you intend the ImageData to be usable in platform-specific APIs (like
+ // font rendering or rendering widgets like scrollbars). This type is not
+ // available in untrusted (NaCl) plugins.
+ PLATFORM,
+ // An ImageData that doesn't need access to the platform-specific canvas.
+ // This is backed by a simple shared memory buffer. This is the only type
+ // of ImageData that can be used by untrusted (NaCl) plugins.
+ SIMPLE
+ };
+
static PP_ImageDataFormat GetNativeImageDataFormat();
static PP_Bool IsImageDataFormatSupported(PP_ImageDataFormat format);
static PP_Bool IsImageDataDescValid(const PP_ImageDataDesc& desc);

Powered by Google App Engine
This is Rietveld 408576698