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 /src/core/SkPicturePlayback.h | |
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 'src/core/SkPicturePlayback.h')
-rw-r--r-- | src/core/SkPicturePlayback.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index d6f0cf1919..ea36ca948b 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -150,10 +150,10 @@ private: return fPicture->getPath(reader.readInt() - 1); } - SkPicture& getPicture(SkReader32& reader) { + const SkPicture* getPicture(SkReader32& reader) { int index = reader.readInt(); SkASSERT(index > 0 && index <= fPictureCount); - return *fPictureRefs[index - 1]; + return fPictureRefs[index - 1]; } const SkPaint* getPaint(SkReader32& reader) { @@ -246,7 +246,7 @@ private: SkData* fOpData; // opcodes and parameters - SkPicture** fPictureRefs; + const SkPicture** fPictureRefs; int fPictureCount; SkBBoxHierarchy* fBoundingHierarchy; |