diff options
author | robertphillips <robertphillips@google.com> | 2014-07-08 08:28:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-08 08:28:08 -0700 |
commit | 1ad00e4b245d464c16ba78bdaa377281f29972cd (patch) | |
tree | 06a227ada11ef57eb124a79c9484d36c09aa1775 /src/gpu/SkGpuDevice.cpp | |
parent | 55fad7af61c21d502acb9891d631e8aa29e3628c (diff) |
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
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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(); } |