diff options
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/graphics/Canvas.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/private/graphics/Canvas.h b/include/private/graphics/Canvas.h index 3cd57f4..2eda6a4 100644 --- a/include/private/graphics/Canvas.h +++ b/include/private/graphics/Canvas.h @@ -28,6 +28,16 @@ public: virtual ~Canvas() {}; static Canvas* create_canvas(SkBitmap* bitmap); + + /** + * Create a new Canvas object which delegates to an SkCanvas. + * + * @param skiaCanvas Must not be NULL. All drawing calls will be + * delegated to this object. This function will call ref() on the + * SkCanvas, and the returned Canvas will unref() it upon + * destruction. + * @return new Canvas object. Will not return NULL. + */ static Canvas* create_canvas(SkCanvas* skiaCanvas); // TODO: enable HWUI to either create similar canvas wrapper or subclass |