Index: skia/ext/platform_canvas.h |
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h |
index 1863d77a7586606f28e04d7579b0f168bbdd38be..b602ed46ca3e3aa3417ec7761c0eb9a617c1701d 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 |