OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
3 * | 4 * |
4 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
6 */ | 7 */ |
7 | |
8 #ifndef SkBitmapHeap_DEFINED | 8 #ifndef SkBitmapHeap_DEFINED |
9 #define SkBitmapHeap_DEFINED | 9 #define SkBitmapHeap_DEFINED |
10 | 10 |
11 #include "SkAtomics.h" | |
12 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
13 #include "SkPoint.h" | 12 #include "SkFlattenable.h" |
14 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
15 #include "SkTDArray.h" | 14 #include "SkTDArray.h" |
16 #include "SkTypes.h" | 15 #include "SkAtomics.h" |
17 | 16 |
18 /** | 17 /** |
19 * SkBitmapHeapEntry provides users of SkBitmapHeap (using internal storage) wit
h a means to... | 18 * SkBitmapHeapEntry provides users of SkBitmapHeap (using internal storage) wit
h a means to... |
20 * (1) get access a bitmap in the heap | 19 * (1) get access a bitmap in the heap |
21 * (2) indicate they are done with bitmap by releasing their reference (if they
were an owner). | 20 * (2) indicate they are done with bitmap by releasing their reference (if they
were an owner). |
22 */ | 21 */ |
23 class SkBitmapHeapEntry : SkNoncopyable { | 22 class SkBitmapHeapEntry : SkNoncopyable { |
24 public: | 23 public: |
25 ~SkBitmapHeapEntry(); | 24 ~SkBitmapHeapEntry(); |
26 | 25 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 const int32_t fOwnerCount; | 289 const int32_t fOwnerCount; |
291 size_t fBytesAllocated; | 290 size_t fBytesAllocated; |
292 | 291 |
293 bool fDeferAddingOwners; | 292 bool fDeferAddingOwners; |
294 SkTDArray<int> fDeferredEntries; | 293 SkTDArray<int> fDeferredEntries; |
295 | 294 |
296 typedef SkBitmapHeapReader INHERITED; | 295 typedef SkBitmapHeapReader INHERITED; |
297 }; | 296 }; |
298 | 297 |
299 #endif // SkBitmapHeap_DEFINED | 298 #endif // SkBitmapHeap_DEFINED |
OLD | NEW |