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/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