OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "SkDiscardableMemory.h" |
| 9 |
| 10 #include <stddef.h> |
| 11 |
8 #include "SkDiscardableMemoryPool.h" | 12 #include "SkDiscardableMemoryPool.h" |
9 #include "SkTypes.h" | |
10 | 13 |
11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { | 14 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { |
12 return SkGetGlobalDiscardableMemoryPool()->create(bytes); | 15 return SkGetGlobalDiscardableMemoryPool()->create(bytes); |
13 } | 16 } |
OLD | NEW |