Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: src/core/SkPictureRecord.h

Issue 715413002: More cleanup: streamline paths and bitmaps. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureRecord.h
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index bac5586eca98f6ecb8a873909e0a68fa1485f288..6a577ca42ef19b59a0d3aa74b7ff49a35d12132f 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -10,7 +10,6 @@
#include "SkCanvas.h"
#include "SkFlattenable.h"
-#include "SkPathHeap.h"
#include "SkPicture.h"
#include "SkPictureData.h"
#include "SkTemplates.h"
@@ -82,10 +81,6 @@ public:
return fWriter.snapshotAsData();
}
- const SkPathHeap* pathHeap() const {
- return fPathHeap.get();
- }
-
const SkPictureContentInfo& contentInfo() const {
return fContentInfo;
}
@@ -236,14 +231,12 @@ protected:
void recordSaveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags);
void recordRestore(bool fillInSkips = true);
- // Allocated in the constructor and managed by this class.
- SkBitmapHeap* fBitmapHeap;
-
private:
SkPictureContentInfo fContentInfo;
- SkAutoTUnref<SkPathHeap> fPathHeap;
- SkTArray<SkPaint> fPaints;
+ SkTArray<SkBitmap> fBitmaps;
+ SkTArray<SkPaint> fPaints;
+ SkTArray<SkPath> fPaths;
SkWriter32 fWriter;
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698