From c994a93b327235182c6d29a782c409b2c58476ae Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 19 Jun 2018 13:09:54 -0400 Subject: Move op memory storage to GrContext (take 2) TBR=bsalomon@google.com Change-Id: I4a448694d4114d83cd3a720cfc8bd37de51733d1 Reviewed-on: https://skia-review.googlesource.com/135707 Reviewed-by: Greg Daniel Reviewed-by: Brian Salomon Commit-Queue: Robert Phillips --- tests/ProcessorTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/ProcessorTest.cpp') diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index 3916436cfc..e52070b7d2 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -29,7 +29,9 @@ public: DEFINE_OP_CLASS_ID static std::unique_ptr Make(GrContext* context, std::unique_ptr fp) { - return std::unique_ptr(new TestOp(std::move(fp))); + GrOpMemoryPool* pool = context->contextPriv().opMemoryPool(); + + return pool->allocate(std::move(fp)); } const char* name() const override { return "TestOp"; } -- cgit v1.2.3