OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #include "SkBitmap.h" | |
9 #include "SkCodec.h" | |
10 | |
11 /** | |
12 * Abstract subclass of SkBitmap's allocator. | |
13 * Allows the allocator to indicate if the memory it allocates | |
14 * is zero initialized. | |
15 */ | |
16 class SkBRDAllocator : public SkBitmap::Allocator { | |
17 public: | |
18 virtual bool allocPixelRef(SkBitmap*, SkColorTable*) = 0; | |
scroggo
2015/11/10 22:31:52
This does not change anything from the superclass.
msarett
2015/11/10 22:45:24
Good point. Removing.
| |
19 | |
20 /** | |
21 * Indicates if the memory allocated by this allocator is | |
22 * zero initialized. | |
23 */ | |
24 virtual SkCodec::ZeroInitialized zeroInit() const = 0; | |
25 }; | |
OLD | NEW |