diff options
author | 2015-04-08 09:08:31 -0700 | |
---|---|---|
committer | 2015-04-08 09:08:31 -0700 | |
commit | b7133bed55af8dd4ca9427892bb1a5623dbaccf0 (patch) | |
tree | 4bcd9cdde8588e40b5c388dea7b715755155a51c /src/gpu/GrContext.cpp | |
parent | 2ad228e8ff3ad7050c58d563879b9831c688e2f1 (diff) |
Adding a cache + memory pool for GPU TextBlobs
BUG=skia:
Review URL: https://codereview.chromium.org/1055843002
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rwxr-xr-x | src/gpu/GrContext.cpp | 3 |
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() { |