diff options
Diffstat (limited to 'src/gpu/ops/GrSmallPathRenderer.h')
-rw-r--r-- | src/gpu/ops/GrSmallPathRenderer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/ops/GrSmallPathRenderer.h b/src/gpu/ops/GrSmallPathRenderer.h index b4fba10943..ef83c771a6 100644 --- a/src/gpu/ops/GrSmallPathRenderer.h +++ b/src/gpu/ops/GrSmallPathRenderer.h @@ -33,8 +33,12 @@ public: // the list of active OnFlushBackkbackObjects in an freeGpuResources call (i.e., we accept the // default retainOnFreeGpuResources implementation). - void preFlush(GrOnFlushResourceProvider*, const uint32_t*, int, - SkTArray<sk_sp<GrRenderTargetContext>>*) override {} + void preFlush(GrOnFlushResourceProvider* onFlushResourceProvider, const uint32_t*, int, + SkTArray<sk_sp<GrRenderTargetContext>>*) override { + if (fAtlas) { + fAtlas->instantiate(onFlushResourceProvider); + } + } void postFlush(GrDeferredUploadToken startTokenForNextFlush, const uint32_t* opListIDs, int numOpListIDs) override { |