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

Side by Side Diff: skia/picture/SkPathHeap.h

Issue 113827: Remove the remainder of the skia source code from the Chromium repo.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « skia/images/fpdfemb_ext.h ('k') | skia/picture/SkPathHeap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef SkPathHeap_DEFINED
2 #define SkPathHeap_DEFINED
3
4 #include "SkRefCnt.h"
5 #include "SkChunkAlloc.h"
6 #include "SkTDArray.h"
7
8 class SkPath;
9 class SkFlattenableReadBuffer;
10 class SkFlattenableWriteBuffer;
11
12 class SkPathHeap : public SkRefCnt {
13 public:
14 SkPathHeap();
15 SkPathHeap(SkFlattenableReadBuffer&);
16 virtual ~SkPathHeap();
17
18 // called during picture-record
19 int append(const SkPath&);
20
21 // called during picture-playback
22 int count() const { return fPaths.count(); }
23 const SkPath& operator[](int index) const {
24 return *fPaths[index];
25 }
26
27 void flatten(SkFlattenableWriteBuffer&) const;
28
29 private:
30 // we store the paths in the heap (placement new)
31 SkChunkAlloc fHeap;
32 // we just store ptrs into fHeap here
33 SkTDArray<SkPath*> fPaths;
34 };
35
36 #endif
37
OLDNEW
« no previous file with comments | « skia/images/fpdfemb_ext.h ('k') | skia/picture/SkPathHeap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698