Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 30778fc13004df33bfb47d73fc37171237ecdf63..14372611f8cfbed8a667a0a3b9eeedaf853aa17f 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -270,7 +270,9 @@ public: |
fClip = &((SkRasterClip*)&rec->fClip)->forceGetBW(); |
fRC = &rec->fClip; |
fDevice = rec->fDevice; |
- fBitmap = &fDevice->accessBitmap(true); |
+ if (!fDevice->accessPixels(&fDst)) { |
+ fDst.reset(fDevice->imageInfo(), NULL, 0); |
+ } |
fPaint = rec->fPaint; |
SkDEBUGCODE(this->validate();) |