aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/distantclip.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-09-04 08:42:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-04 08:42:50 -0700
commitc5ba71d2e5cd426def66fa49dcf003e5b2c98dc7 (patch)
tree120359b17c8143f85462fefd855d2d94b50ce785 /gm/distantclip.cpp
parent227c54e3d4e7b738d0b11a2f68b63cb1fd79cb12 (diff)
Change SkPicture::draw to playback
R=reed@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/540963002
Diffstat (limited to 'gm/distantclip.cpp')
-rw-r--r--gm/distantclip.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/distantclip.cpp b/gm/distantclip.cpp
index 0f8955948a..54938b0d13 100644
--- a/gm/distantclip.cpp
+++ b/gm/distantclip.cpp
@@ -46,15 +46,15 @@ protected:
SkAutoTUnref<SkPicture> pict(recorder.endRecording());
// Next we play that picture into another picture of the same size.
- pict->draw(recorder.beginRecording(pict->cullRect().width(),
- pict->cullRect().height(),
- NULL, 0));
+ pict->playback(recorder.beginRecording(pict->cullRect().width(),
+ pict->cullRect().height(),
+ NULL, 0));
SkAutoTUnref<SkPicture> pict2(recorder.endRecording());
// Finally we play the part of that second picture that should be green into the canvas.
canvas->save();
canvas->translate(kExtents / 2, -(kOffset - kExtents / 2));
- pict2->draw(canvas);
+ pict2->playback(canvas);
canvas->restore();
// If the image is red, we erroneously decided the clipPath was empty and didn't record