diff options
author | Herb Derby <herb@google.com> | 2018-05-23 16:38:09 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-24 19:47:49 +0000 |
commit | b12175f40fcd3d049de3f38d5388f6eb483ab268 (patch) | |
tree | 577a8834a751af42a390443863fc0b2460c20eb1 /src/gpu/GrContext.cpp | |
parent | ef839a96ff92a2bd96b1f21719f239565f91e96f (diff) |
Remove memory pool use from SkTextBlobCache
Track used size explicitly in the cache enabling DDL to use
the LRU.
Change-Id: I3fef593e9252172dd160fd7636254550b95ca0a2
Reviewed-on: https://skia-review.googlesource.com/130022
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 24c28e6d86..7195405833 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -136,7 +136,7 @@ bool GrContext::initCommon(const GrContextOptions& options) { fGlyphCache = new GrGlyphCache(fCaps.get(), options.fGlyphCacheTextureMaximumBytes); fTextBlobCache.reset(new GrTextBlobCache(TextBlobCacheOverBudgetCB, - this, this->uniqueID(), SkToBool(fGpu))); + this, this->uniqueID())); // DDL TODO: we need to think through how the task group & persistent cache // get passed on to/shared between all the DDLRecorders created with this context. |