diff options
author | mtklein <mtklein@chromium.org> | 2014-11-12 10:24:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-12 10:24:55 -0800 |
commit | 71a236370792416b367a7d2d6b8e471b06b331cd (patch) | |
tree | cffb97b06bce0279e7f4b62802c7559a7237a206 /src/core/SkPictureData.h | |
parent | 391e318b3d31669ecef5306cb279618c121e45af (diff) |
More cleanup: streamline paths and bitmaps.
SkBitmapHeap is still used---now exclusively---by pipe.
BUG=skia:
Review URL: https://codereview.chromium.org/715413002
Diffstat (limited to 'src/core/SkPictureData.h')
-rw-r--r-- | src/core/SkPictureData.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/core/SkPictureData.h b/src/core/SkPictureData.h index 02529938ab..9a5a4ca0c1 100644 --- a/src/core/SkPictureData.h +++ b/src/core/SkPictureData.h @@ -9,7 +9,6 @@ #define SkPictureData_DEFINED #include "SkBitmap.h" -#include "SkPathHeap.h" #include "SkPicture.h" #include "SkPictureContentInfo.h" #include "SkPictureFlat.h" @@ -85,18 +84,12 @@ protected: public: const SkBitmap& getBitmap(SkReader32* reader) const { const int index = reader->readInt(); - if (SkBitmapHeap::INVALID_SLOT == index) { -#ifdef SK_DEBUG - SkDebugf("An invalid bitmap was recorded!\n"); -#endif - return fBadBitmap; - } return (*fBitmaps)[index]; } const SkPath& getPath(SkReader32* reader) const { int index = reader->readInt() - 1; - return (*fPathHeap.get())[index]; + return (*fPaths)[index]; } const SkPicture* getPicture(SkReader32* reader) const { @@ -149,15 +142,12 @@ private: // bitmap allows playback to draw nothing and move on. SkBitmap fBadBitmap; - SkAutoTUnref<SkBitmapHeap> fBitmapHeap; - SkTRefArray<SkBitmap>* fBitmaps; - SkTRefArray<SkPaint>* fPaints; + SkTRefArray<SkPaint>* fPaints; + SkTRefArray<SkPath>* fPaths; SkData* fOpData; // opcodes and parameters - SkAutoTUnref<const SkPathHeap> fPathHeap; // reference counted - const SkPicture** fPictureRefs; int fPictureCount; const SkTextBlob** fTextBlobRefs; |