diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-18 15:35:37 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-18 15:35:37 +0000 |
commit | 2d8c757f5c169108a9557de1c95d17790cc31eed (patch) | |
tree | 0eab0d9b69818fd6f59e5d37fa89b24c9522941d | |
parent | e788430144d1474329878abd1ddb39cc0ca52a0a (diff) |
Remove unecessary virtual calls by having SkPicture use SkReader32 directly.
Review URL: https://codereview.appspot.com/6048046
git-svn-id: http://skia.googlecode.com/svn/trunk@3722 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/core/SkPicturePlayback.cpp | 3 | ||||
-rw-r--r-- | src/core/SkPicturePlayback.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp index 2ca2fc79bf..b3eb147020 100644 --- a/src/core/SkPicturePlayback.cpp +++ b/src/core/SkPicturePlayback.cpp @@ -75,10 +75,7 @@ SkPicturePlayback::SkPicturePlayback(const SkPictureRecord& record) { // copy over the refcnt dictionary to our reader // fRCPlayback.reset(&record.fRCSet); - fRCPlayback.setupBuffer(fReader); - fTFPlayback.reset(&record.fTFSet); - fTFPlayback.setupBuffer(fReader); const SkTDArray<const SkFlatBitmap* >& bitmaps = record.getBitmaps(); fBitmapCount = bitmaps.count(); diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index b82e9dbb05..1855babece 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -167,7 +167,7 @@ private: int fPaintCount; SkRegion* fRegions; int fRegionCount; - mutable SkOrderedReadBuffer fReader; + mutable SkReader32 fReader; SkPicture** fPictureRefs; int fPictureCount; |