diff options
| author | robertphillips <robertphillips@google.com> | 2014-06-04 05:40:44 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2014-06-04 05:40:44 -0700 |
| commit | 9b14f26d0f3a974f3dd626c8354e1db1cfcd322f (patch) | |
| tree | 542d5f1d7a1266454675745139e956b4424fde4b /samplecode/SamplePictFile.cpp | |
| parent | 232f7259a939c70ce447a729a5094fcc272b679d (diff) | |
Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer)
R=reed@google.com, bsalomon@google.com, mtklein@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/313613004
Diffstat (limited to 'samplecode/SamplePictFile.cpp')
| -rw-r--r-- | samplecode/SamplePictFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp index 7b9584d305..9e9764c433 100644 --- a/samplecode/SamplePictFile.cpp +++ b/samplecode/SamplePictFile.cpp @@ -100,7 +100,7 @@ protected: *picture = LoadPicture(fFilename.c_str(), fBBox); } if (*picture) { - canvas->drawPicture(**picture); + canvas->drawPicture(*picture); } } @@ -140,7 +140,7 @@ private: if (false) { SkSurface* surf = SkSurface::NewRasterPMColor(pic->width(), pic->height()); - surf->getCanvas()->drawPicture(*pic); + surf->getCanvas()->drawPicture(pic); surf->unref(); } if (false) { // re-record |
