Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 374833006: Split SkPictureRangePlayback out of SkPicturePlayback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addressed code review comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureRangePlayback.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/core/SkPictureRangePlayback.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698