diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-09-22 14:23:22 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-22 18:43:48 +0000 |
commit | 7cf59526c9b1ab3682e875d449200e51f3b6ff32 (patch) | |
tree | 33b8858809191162841f44c3833b555f34a96ba3 /src/gpu/GrPathRendererChain.cpp | |
parent | c38548b3210e23090b0fa808cc0fdc16c8d55149 (diff) |
Shrink GrDrawOpAtlases when no longer needed
Bug: skia:3550
Change-Id: I7b09aa2b0fd22ed99694f32f9f395392ef80e238
Reviewed-on: https://skia-review.googlesource.com/49901
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPathRendererChain.cpp')
-rw-r--r-- | src/gpu/GrPathRendererChain.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp index 466f90a890..843d712c5c 100644 --- a/src/gpu/GrPathRendererChain.cpp +++ b/src/gpu/GrPathRendererChain.cpp @@ -63,7 +63,9 @@ GrPathRendererChain::GrPathRendererChain(GrContext* context, const Options& opti fChain.push_back(sk_make_sp<GrAALinearizingConvexPathRenderer>()); } if (options.fGpuPathRenderers & GpuPathRenderers::kSmall) { - fChain.push_back(sk_make_sp<GrSmallPathRenderer>()); + auto spr = sk_make_sp<GrSmallPathRenderer>(); + context->contextPriv().addOnFlushCallbackObject(spr.get()); + fChain.push_back(spr); } if (options.fGpuPathRenderers & GpuPathRenderers::kTessellating) { fChain.push_back(sk_make_sp<GrTessellatingPathRenderer>()); |