Chromium Code Reviews| Index: skia/ext/platform_canvas.h |
| diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h |
| index cbeb95b2bbe252cf5c5ebc7bd3abeeb3ad29dcf8..91db9f7aa4f648c76e1333591e0ddb9bfb2d6c2c 100644 |
| --- a/skia/ext/platform_canvas.h |
| +++ b/skia/ext/platform_canvas.h |
| @@ -115,10 +115,14 @@ SK_API SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque); |
| // and where it is possible to recover gracefully from the failed allocation. |
| SK_API SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque); |
| +// Returns support for native platform routines. |
| +SK_API PlatformDevice::PlatformPaint PlatformPaintSupport( |
|
sky
2012/09/26 21:17:32
Can we have a Get in here, eg GetPlatformPaintSupp
|
| + const SkCanvas* canvas); |
| + |
| // 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); |
| +SK_API bool IsPlatformPaintSupported(const SkCanvas* canvas); |
| // Draws into the a native platform surface, |context|. Forwards to |
| // DrawToNativeContext on a PlatformDevice instance bound to the top device. |