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" |
8 #include "SkDiscardableMemoryPool.h" | 9 #include "SkDiscardableMemoryPool.h" |
9 #include "SkTypes.h" | 10 #include "SkTypes.h" |
10 | 11 |
11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { | 12 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { |
12 return SkGetGlobalDiscardableMemoryPool()->create(bytes); | 13 return SkGetGlobalDiscardableMemoryPool()->create(bytes); |
13 } | 14 } |
OLD | NEW |