Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index cf152fa6e51b023027c697250b06fd1fb05725dd..42acc9b81cc905785c7c8f48c21d5bdde36266ae 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -31,6 +31,7 @@ |
#include "SkPicture.h" |
#include "SkPictureData.h" |
#include "SkPicturePlayback.h" |
+#include "SkPictureRangePlayback.h" |
#include "SkRRect.h" |
#include "SkStroke.h" |
#include "SkSurface.h" |
@@ -2010,9 +2011,10 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pi |
SkIntToScalar(layer->rect().fTop)); |
} |
- SkPicturePlayback playback(picture); |
- playback.setDrawLimits(info.fSaveLayerOpID, info.fRestoreOpID); |
- playback.draw(canvas, NULL); |
+ SkPictureRangePlayback rangePlayback(picture, |
+ info.fSaveLayerOpID, |
+ info.fRestoreOpID); |
+ rangePlayback.draw(canvas, NULL); |
canvas->flush(); |
} |