From c8cee446bf9c07da8848bbd032abf26e79966ac1 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 14 Jun 2018 14:31:17 -0400 Subject: Move op memory storage to GrContext TBR=bsalomon@google.com Change-Id: Ifa95bf0073b9d948f2c937d10088b7734b971f90 Reviewed-on: https://skia-review.googlesource.com/131500 Reviewed-by: Brian Salomon Reviewed-by: Greg Daniel Commit-Queue: Robert Phillips --- tests/DrawOpAtlasTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/DrawOpAtlasTest.cpp') 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)); } -- cgit v1.2.3