diff options
Diffstat (limited to 'skia/ext/platform_canvas.h')
-rw-r--r-- | skia/ext/platform_canvas.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h index c4d9222..24f613a 100644 --- a/skia/ext/platform_canvas.h +++ b/skia/ext/platform_canvas.h @@ -119,6 +119,11 @@ class SK_API PlatformCanvas : public SkCanvas { // transparency: this will enable some optimizations. SK_API SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque); +// Returns true if native platform routines can be used to draw on the +// given canvas. If this function returns false, BeginPlatformPaint will +// return NULL PlatformSurface. +SK_API bool SupportsPlatformPaint(const SkCanvas* canvas); + // These calls should surround calls to platform drawing routines, the // surface returned here can be used with the native platform routines. // |