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

Unified Diff: gm/optimizations.cpp

Issue 540963002: Change SkPicture::draw to playback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix nanomsg Created 6 years, 3 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 | « gm/gmmain.cpp ('k') | gyp/skia_for_android_framework_defines.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/optimizations.cpp
diff --git a/gm/optimizations.cpp b/gm/optimizations.cpp
index 00be04cee61461b06924936d8e4190514c344808..85ce3e9d945333ff4e2d7936df44787ea6a493c6 100644
--- a/gm/optimizations.cpp
+++ b/gm/optimizations.cpp
@@ -19,7 +19,7 @@
static bool check_pattern(SkPicture& input, const SkTDArray<DrawType> &pattern) {
SkDebugCanvas debugCanvas(SkScalarCeilToInt(input.cullRect().width()),
SkScalarCeilToInt(input.cullRect().height()));
- input.draw(&debugCanvas);
+ input.playback(&debugCanvas);
if (pattern.count() != debugCanvas.getSize()) {
return false;
@@ -352,7 +352,7 @@ protected:
canvas->save();
canvas->translate(xPos, yPos);
- pre->draw(canvas);
+ pre->playback(canvas);
xPos += pre->cullRect().width();
canvas->restore();
@@ -364,7 +364,7 @@ protected:
pre->cullRect().height(),
NULL, 0);
- pre->draw(recordCanvas);
+ pre->playback(recordCanvas);
SkAutoTUnref<SkPicture> post(recorder.endRecording());
@@ -375,7 +375,7 @@ protected:
canvas->save();
canvas->translate(xPos, yPos);
- post->draw(canvas);
+ post->playback(canvas);
xPos += post->cullRect().width();
canvas->restore();
« no previous file with comments | « gm/gmmain.cpp ('k') | gyp/skia_for_android_framework_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698