Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index 1cb6d3766ad623f5947a196ccd773a2fd49ff129..efc65463b52181a75aee7c854f22b0893e37670d 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -173,6 +173,8 @@ public: |
virtual void writePixels(const SkBitmap& bitmap, int x, int y, |
SkCanvas::Config8888 config8888) SK_OVERRIDE; |
+ virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
+ |
protected: |
virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; |
virtual bool onReadPixels(const SkBitmap& bitmap, |
@@ -495,6 +497,10 @@ SkBaseDevice* DeferredDevice::onCreateCompatibleDevice( |
return immediateDevice()->createCompatibleDevice(config, width, height, isOpaque); |
} |
+SkSurface* DeferredDevice::newSurface(const SkImageInfo& info) { |
+ return this->immediateDevice()->newSurface(info); |
+} |
+ |
bool DeferredDevice::onReadPixels( |
const SkBitmap& bitmap, int x, int y, SkCanvas::Config8888 config8888) { |
this->flushPendingCommands(kNormal_PlaybackMode); |