summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_image_data_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/thunk/ppb_image_data_api.h')
-rw-r--r--ppapi/thunk/ppb_image_data_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/thunk/ppb_image_data_api.h b/ppapi/thunk/ppb_image_data_api.h
index c22e899..b7a3e69 100644
--- a/ppapi/thunk/ppb_image_data_api.h
+++ b/ppapi/thunk/ppb_image_data_api.h
@@ -8,6 +8,10 @@
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/ppb_image_data.h"
+namespace skia {
+class PlatformCanvas;
+}
+
namespace ppapi {
namespace thunk {
@@ -21,6 +25,9 @@ class PPB_ImageData_API {
// Trusted inteface.
virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) = 0;
+
+ // The canvas will be NULL if the image is not mapped.
+ virtual skia::PlatformCanvas* GetPlatformCanvas() = 0;
};
} // namespace thunk