Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: src/core/SkGraphics.cpp

Issue 22956004: skia: Added SkDiscardableMemory interface. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« include/core/SkGraphics.h ('K') | « src/core/SkDiscardableMemory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« include/core/SkGraphics.h ('K') | « src/core/SkDiscardableMemory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698