diff options
author | 2014-09-04 08:42:50 -0700 | |
---|---|---|
committer | 2014-09-04 08:42:50 -0700 | |
commit | c5ba71d2e5cd426def66fa49dcf003e5b2c98dc7 (patch) | |
tree | 120359b17c8143f85462fefd855d2d94b50ce785 /samplecode | |
parent | 227c54e3d4e7b738d0b11a2f68b63cb1fd79cb12 (diff) |
Change SkPicture::draw to playback
R=reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/540963002
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleAll.cpp | 2 | ||||
-rw-r--r-- | samplecode/SampleApp.cpp | 2 | ||||
-rw-r--r-- | samplecode/SamplePictFile.cpp | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index 395314c7ff..19e692f518 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -322,7 +322,7 @@ protected: do { canvas->save(); canvas->clipRect(clip); - picture->draw(canvas); + picture->playback(canvas); canvas->restore(); if (clip.fRight < SkIntToScalar(320)) clip.offset(SkIntToScalar(160), 0); diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index e8d6d9911e..9c9b34384c 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -1376,7 +1376,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) { orig->drawPicture(pict.get()); } } else { - picture->draw(orig); + picture->playback(orig); } } diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp index 3d7acfc47d..df0c369736 100644 --- a/samplecode/SamplePictFile.cpp +++ b/samplecode/SamplePictFile.cpp @@ -144,9 +144,9 @@ private: } if (false) { // re-record SkPictureRecorder recorder; - pic->draw(recorder.beginRecording(pic->cullRect().width(), - pic->cullRect().height(), - NULL, 0)); + pic->playback(recorder.beginRecording(pic->cullRect().width(), + pic->cullRect().height(), + NULL, 0)); SkAutoTUnref<SkPicture> p2(recorder.endRecording()); SkString path2(path); @@ -182,9 +182,9 @@ private: } SkPictureRecorder recorder; - pic->draw(recorder.beginRecording(pic->cullRect().width(), - pic->cullRect().height(), - factory.get(), 0)); + pic->playback(recorder.beginRecording(pic->cullRect().width(), + pic->cullRect().height(), + factory.get(), 0)); return recorder.endRecording(); } |