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 |
11 #include <stddef.h> | |
mtklein
2015/07/28 22:04:19
I think I'd rather "SkTypes.h" than <stddef.h>, un
bungeman-skia
2015/07/29 16:46:23
I'd like to switch to <cstdfoo> directly. I assume
mtklein
2015/07/29 18:05:02
sgtm
| |
10 | 12 |
11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { | 13 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { |
12 return SkGetGlobalDiscardableMemoryPool()->create(bytes); | 14 return SkGetGlobalDiscardableMemoryPool()->create(bytes); |
13 } | 15 } |
OLD | NEW |