diff options
author | robertphillips <robertphillips@google.com> | 2014-09-04 08:42:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-04 08:42:50 -0700 |
commit | c5ba71d2e5cd426def66fa49dcf003e5b2c98dc7 (patch) | |
tree | 120359b17c8143f85462fefd855d2d94b50ce785 /dm | |
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 'dm')
-rw-r--r-- | dm/DMPDFTask.cpp | 2 | ||||
-rw-r--r-- | dm/DMQuiltTask.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dm/DMPDFTask.cpp b/dm/DMPDFTask.cpp index 7d1fa5924d..c047771587 100644 --- a/dm/DMPDFTask.cpp +++ b/dm/DMPDFTask.cpp @@ -77,7 +77,7 @@ void PDFTask::draw() { pdfData.reset(pdf.end()); } else { SinglePagePDF pdf(fPicture->cullRect().width(), fPicture->cullRect().height()); - fPicture->draw(pdf.canvas()); + fPicture->playback(pdf.canvas()); pdfData.reset(pdf.end()); } diff --git a/dm/DMQuiltTask.cpp b/dm/DMQuiltTask.cpp index a824de0f15..6ffe360ea8 100644 --- a/dm/DMQuiltTask.cpp +++ b/dm/DMQuiltTask.cpp @@ -46,7 +46,7 @@ public: SkCanvas tileCanvas(tile); tileCanvas.translate(SkIntToScalar(-fX), SkIntToScalar(-fY)); - fPicture.draw(&tileCanvas); + fPicture.playback(&tileCanvas); tileCanvas.flush(); delete this; @@ -92,7 +92,7 @@ void QuiltTask::draw() { if (fGM->getFlags() & skiagm::GM::kSkipTiled_Flag) { // Some GMs don't draw exactly the same when tiled. Draw them in one go. SkCanvas canvas(full); - recorded->draw(&canvas); + recorded->playback(&canvas); canvas.flush(); } else { // Draw tiles in parallel into the same bitmap, simulating aggressive impl-side painting. |