diff options
Diffstat (limited to 'src/gpu/ops/GrSmallPathRenderer.h')
-rw-r--r-- | src/gpu/ops/GrSmallPathRenderer.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gpu/ops/GrSmallPathRenderer.h b/src/gpu/ops/GrSmallPathRenderer.h index b958baa843..9c3104b136 100644 --- a/src/gpu/ops/GrSmallPathRenderer.h +++ b/src/gpu/ops/GrSmallPathRenderer.h @@ -9,6 +9,7 @@ #define GrSmallPathRenderer_DEFINED #include "GrDrawOpAtlas.h" +#include "GrOnFlushResourceProvider.h" #include "GrPathRenderer.h" #include "GrRect.h" #include "GrShape.h" @@ -18,7 +19,7 @@ class GrContext; -class GrSmallPathRenderer : public GrPathRenderer { +class GrSmallPathRenderer : public GrPathRenderer, public GrOnFlushCallbackObject { public: GrSmallPathRenderer(); ~GrSmallPathRenderer() override; @@ -26,6 +27,15 @@ public: class SmallPathOp; struct PathTestStruct; + void preFlush(GrOnFlushResourceProvider*, const uint32_t*, int, + SkTArray<sk_sp<GrRenderTargetContext>>*) override {} + + void postFlush(GrDrawOpUploadToken startTokenForNextFlush) override { + if (fAtlas) { + fAtlas->compact(startTokenForNextFlush); + } + } + private: StencilSupport onGetStencilSupport(const GrShape&) const override { return GrPathRenderer::kNoSupport_StencilSupport; |