aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureData.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkPictureData.h')
-rw-r--r--src/core/SkPictureData.h16
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;