Chromium Code Reviews| Index: src/pipe/SkGPipePriv.h |
| diff --git a/src/pipe/SkGPipePriv.h b/src/pipe/SkGPipePriv.h |
| index c3919f635bd6232221d51eb37a08266a0bf1f5b5..9aaa070ae2be8186c77b6dfaa5a1aaba57c76761 100644 |
| --- a/src/pipe/SkGPipePriv.h |
| +++ b/src/pipe/SkGPipePriv.h |
| @@ -222,6 +222,8 @@ public: |
| SkImageHeap(); |
| virtual ~SkImageHeap(); |
| + size_t bytesAllocated() const { return fBytesAllocated; } |
|
reed1
2015/06/02 14:35:42
nit: bytesUsed() or bytesCached()?
Justin Novosad
2015/06/02 16:50:33
Done.
|
| + void reset(); |
| // slot must be "valid" -- 0 is never valid |
| const SkImage* get(int32_t slot) const; |
| // returns 0 if not found, else returns slot |
| @@ -231,6 +233,7 @@ public: |
| private: |
| SkTDArray<const SkImage*> fArray; |
| + size_t fBytesAllocated; |
| }; |
| /////////////////////////////////////////////////////////////////////////////// |