OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkBRDAllocator_DEFINED | 8 #ifndef SkBRDAllocator_DEFINED |
9 #define SkBRDAllocator_DEFINED | 9 #define SkBRDAllocator_DEFINED |
10 | 10 |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkCodec.h" | 12 #include "SkCodec.h" |
13 | 13 |
14 /** | 14 /** |
15 * Abstract subclass of SkBitmap's allocator. | 15 * Abstract subclass of SkBitmap's allocator. |
16 * Allows the allocator to indicate if the memory it allocates | 16 * Allows the allocator to indicate if the memory it allocates |
17 * is zero initialized. | 17 * is zero initialized. |
18 */ | 18 */ |
19 class SkBRDAllocator : public SkBitmap::Allocator { | 19 class SkBRDAllocator : public SkBitmap::Allocator { |
20 public: | 20 public: |
21 | 21 |
22 /** | 22 /** |
23 * Indicates if the memory allocated by this allocator is | 23 * Indicates if the memory allocated by this allocator is |
24 * zero initialized. | 24 * zero initialized. |
25 */ | 25 */ |
26 virtual SkCodec::ZeroInitialized zeroInit() const = 0; | 26 virtual SkCodec::ZeroInitialized zeroInit() const = 0; |
27 }; | 27 }; |
28 | 28 |
29 #endif | 29 #endif // SkBRDAllocator_DEFINED |
OLD | NEW |