aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContext.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-04-08 09:08:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-08 09:08:31 -0700
commitb7133bed55af8dd4ca9427892bb1a5623dbaccf0 (patch)
tree4bcd9cdde8588e40b5c388dea7b715755155a51c /src/gpu/GrContext.cpp
parent2ad228e8ff3ad7050c58d563879b9831c688e2f1 (diff)
Adding a cache + memory pool for GPU TextBlobs
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rwxr-xr-xsrc/gpu/GrContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 40e714b152..89429f186d 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -33,6 +33,7 @@
#include "GrStencilAndCoverTextContext.h"
#include "GrStrokeInfo.h"
#include "GrSurfacePriv.h"
+#include "GrTextBlobCache.h"
#include "GrTexturePriv.h"
#include "GrTraceMarker.h"
#include "GrTracing.h"
@@ -136,6 +137,8 @@ void GrContext::initCommon() {
// GrBatchFontCache will eventually replace GrFontCache
fBatchFontCache = SkNEW(GrBatchFontCache);
fBatchFontCache->init(this);
+
+ fTextBlobCache.reset(SkNEW(GrTextBlobCache));
}
GrContext::~GrContext() {