diff options
Diffstat (limited to 'skia/ext/platform_canvas.h')
-rw-r--r-- | skia/ext/platform_canvas.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h index 1863d77..b602ed46 100644 --- a/skia/ext/platform_canvas.h +++ b/skia/ext/platform_canvas.h @@ -18,10 +18,11 @@ namespace skia { // using both Skia operations and platform-specific operations. class PlatformCanvas : public SkCanvas { public: - // Set is_opaque if you are going to erase the bitmap and not use - // transparency: this will enable some optimizations. // If you use the version with no arguments, you MUST call initialize() PlatformCanvas(); + explicit PlatformCanvas(SkDeviceFactory* factory); + // Set is_opaque if you are going to erase the bitmap and not use + // transparency: this will enable some optimizations. PlatformCanvas(int width, int height, bool is_opaque); virtual ~PlatformCanvas(); @@ -96,16 +97,6 @@ class PlatformCanvas : public SkCanvas { // FIXME(brettw) is this necessary? using SkCanvas::clipRect; - protected: - // Creates a device store for use by the canvas. We override this so that - // the device is always our own so we know that we can use platform - // operations on it. - virtual SkDevice* createDevice(SkBitmap::Config, - int width, - int height, - bool is_opaque, - bool isForLayer); - private: // Unimplemented. This is to try to prevent people from calling this function // on SkCanvas. SkCanvas' version is not virtual, so we can't prevent this |