From 1ad00e4b245d464c16ba78bdaa377281f29972cd Mon Sep 17 00:00:00 2001 From: robertphillips Date: Tue, 8 Jul 2014 08:28:08 -0700 Subject: Split SkPictureRangePlayback out of SkPicturePlayback This CL starts cleaning up SkPicturePlayback. Future CLs will: split out the SkPictureReplacementPlayback remove the preDraw/postDraw entry points & fix up SkPictureTimedPlayback R=mtklein@google.com, reed@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/374833006 --- src/gpu/SkGpuDevice.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gpu/SkGpuDevice.cpp') diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index cf152fa6e5..42acc9b81c 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(); } -- cgit v1.2.3