diff options
Diffstat (limited to 'tests/GrMeshTest.cpp')
-rw-r--r-- | tests/GrMeshTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/GrMeshTest.cpp b/tests/GrMeshTest.cpp index 4535f13975..4d9773b1a9 100644 --- a/tests/GrMeshTest.cpp +++ b/tests/GrMeshTest.cpp @@ -258,7 +258,9 @@ public: static std::unique_ptr<GrDrawOp> Make(GrContext* context, std::function<void(DrawMeshHelper*)> testFn) { - return std::unique_ptr<GrDrawOp>(new GrMeshTestOp(testFn)); + GrOpMemoryPool* pool = context->contextPriv().opMemoryPool(); + + return pool->allocate<GrMeshTestOp>(testFn); } private: |