Chromium Code Reviews| Index: src/core/SkGraphics.cpp |
| diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp |
| index 8e7c7cd31db1c450455a4b12fbd1c837ae4e6f95..ce62ab278f8169fd003310edff9211a459d256f8 100644 |
| --- a/src/core/SkGraphics.cpp |
| +++ b/src/core/SkGraphics.cpp |
| @@ -12,6 +12,7 @@ |
| #include "Sk64.h" |
| #include "SkBlitter.h" |
| #include "SkCanvas.h" |
| +#include "SkDiscardableMemory.h" |
| #include "SkFloat.h" |
| #include "SkGeometry.h" |
| #include "SkMath.h" |
| @@ -144,6 +145,11 @@ static const struct { |
| { kFontCacheLimitStr, kFontCacheLimitLen, SkGraphics::SetFontCacheLimit } |
| }; |
| +void SkGraphics::SetSkDiscardableMemoryFactory( |
| + SkDiscardableMemoryFactory* factory) { |
| + // TODO: Store factory pointer at the right place in Skia. |
|
scroggo
2013/08/15 14:06:06
A global, like with the font cache uses? (getShare
ernstm
2013/08/15 20:26:37
Using the embedding pattern that was used for SkTh
|
| +} |
| + |
| /* flags are of the form param; or param=value; */ |
| void SkGraphics::SetFlags(const char* flags) { |
| if (!flags) { |