diff options
Diffstat (limited to 'tests/DrawOpAtlasTest.cpp')
-rw-r--r-- | tests/DrawOpAtlasTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/DrawOpAtlasTest.cpp b/tests/DrawOpAtlasTest.cpp index 0a5f991e69..e065bf0249 100644 --- a/tests/DrawOpAtlasTest.cpp +++ b/tests/DrawOpAtlasTest.cpp @@ -13,6 +13,7 @@ #include "GrDeferredUpload.h" #include "GrDrawOpAtlas.h" #include "GrDrawingManager.h" +#include "GrMemoryPool.h" #include "GrOnFlushResourceProvider.h" #include "GrOpFlushState.h" #include "GrRenderTargetContext.h" @@ -181,6 +182,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrAtlasTextOpPreparation, reporter, ctxInfo) auto resourceProvider = context->contextPriv().resourceProvider(); auto drawingManager = context->contextPriv().drawingManager(); auto textContext = drawingManager->getTextContext(); + auto opMemoryPool = context->contextPriv().opMemoryPool(); auto rtc = context->contextPriv().makeDeferredRenderTargetContext(SkBackingFit::kApprox, 32, 32, @@ -222,4 +224,5 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrAtlasTextOpPreparation, reporter, ctxInfo) flushState.setOpArgs(&opArgs); op->prepare(&flushState); flushState.setOpArgs(nullptr); + opMemoryPool->release(std::move(op)); } |