Index: src/core/SkPictureRecorder.cpp |
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp |
index 844b0e765b8bba8e937ee2834837492817ad2c1d..46f9ae0060e894e8adf92cdae1feaec1e30ea00b 100644 |
--- a/src/core/SkPictureRecorder.cpp |
+++ b/src/core/SkPictureRecorder.cpp |
@@ -18,7 +18,7 @@ SkCanvas* SkPictureRecorder::beginRecording(int width, int height, |
} |
#ifdef SK_BUILD_FOR_ANDROID |
-void SkPictureRecorder::partialReplay(SkCanvas* canvas) { |
+void SkPictureRecorder::partialReplay(SkCanvas* canvas) const { |
if (NULL == fPicture.get() || NULL == canvas) { |
// Not recording or nothing to replay into |
return; |
@@ -26,7 +26,7 @@ void SkPictureRecorder::partialReplay(SkCanvas* canvas) { |
SkASSERT(NULL != fPicture->fRecord); |
- SkAutoTDelete<SkPicturePlayback> playback(SkPicture::FakeEndRecording(fPicture, |
+ SkAutoTDelete<SkPicturePlayback> playback(SkPicture::FakeEndRecording(fPicture.get(), |
*fPicture->fRecord, |
false)); |
playback->draw(*canvas, NULL); |