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

Unified Diff: ppapi/thunk/ppb_image_data_api.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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') | printing/metafile_skia_wrapper.h » ('j') | 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..e2c8c23d0c0a33cfaed45c4df46b2e83c6be40f0 100644
--- a/ppapi/thunk/ppb_image_data_api.h
+++ b/ppapi/thunk/ppb_image_data_api.h
@@ -9,8 +9,7 @@
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/ppb_image_data.h"
-
-class SkCanvas;
+#include "skia/ext/cdl_common.h"
namespace base {
class SharedMemory;
@@ -42,13 +41,13 @@ class PPB_ImageData_API {
// 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;
+ virtual CdlCanvas* GetPlatformCanvas() = 0;
// Get the 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).
- virtual SkCanvas* GetCanvas() = 0;
+ virtual CdlCanvas* GetCanvas() = 0;
// Signal that this image is a good candidate for reuse. Call this from APIs
// that receive ImageData resources of a fixed size and where the plugin will
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | printing/metafile_skia_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698