diff options
Diffstat (limited to 'tests/GrPipelineDynamicStateTest.cpp')
-rw-r--r-- | tests/GrPipelineDynamicStateTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/GrPipelineDynamicStateTest.cpp b/tests/GrPipelineDynamicStateTest.cpp index 0f786e7c23..a197650c4f 100644 --- a/tests/GrPipelineDynamicStateTest.cpp +++ b/tests/GrPipelineDynamicStateTest.cpp @@ -109,8 +109,9 @@ public: static std::unique_ptr<GrDrawOp> Make(GrContext* context, ScissorState scissorState, sk_sp<const GrBuffer> vbuff) { - return std::unique_ptr<GrDrawOp>(new GrPipelineDynamicStateTestOp(scissorState, - std::move(vbuff))); + GrOpMemoryPool* pool = context->contextPriv().opMemoryPool(); + + return pool->allocate<GrPipelineDynamicStateTestOp>(scissorState, std::move(vbuff)); } private: |