aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LazyProxyTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/LazyProxyTest.cpp')
-rw-r--r--tests/LazyProxyTest.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/LazyProxyTest.cpp b/tests/LazyProxyTest.cpp
index 796e4870db..c0dcbf9647 100644
--- a/tests/LazyProxyTest.cpp
+++ b/tests/LazyProxyTest.cpp
@@ -59,9 +59,7 @@ public:
GrProxyProvider* proxyProvider,
LazyProxyTest* test,
bool nullTexture) {
- GrOpMemoryPool* pool = context->contextPriv().opMemoryPool();
-
- return pool->allocate<Op>(proxyProvider, test, nullTexture);
+ return std::unique_ptr<GrDrawOp>(new Op(proxyProvider, test, nullTexture));
}
void visitProxies(const VisitProxyFunc& func) const override {
@@ -272,11 +270,8 @@ public:
GrProxyProvider* proxyProvider,
int* testExecuteValue,
bool shouldFailInstantiation) {
- GrOpMemoryPool* pool = context->contextPriv().opMemoryPool();
-
- return pool->allocate<LazyFailedInstantiationTestOp>(proxyProvider,
- testExecuteValue,
- shouldFailInstantiation);
+ return std::unique_ptr<GrDrawOp>(new LazyFailedInstantiationTestOp(
+ proxyProvider, testExecuteValue, shouldFailInstantiation));
}
void visitProxies(const VisitProxyFunc& func) const override {
@@ -372,9 +367,7 @@ public:
DEFINE_OP_CLASS_ID
static std::unique_ptr<GrDrawOp> Make(GrContext* context, sk_sp<GrTextureProxy> proxy) {
- GrOpMemoryPool* pool = context->contextPriv().opMemoryPool();
-
- return pool->allocate<LazyUninstantiateTestOp>(std::move(proxy));
+ return std::unique_ptr<GrDrawOp>(new LazyUninstantiateTestOp(std::move(proxy)));
}
void visitProxies(const VisitProxyFunc& func) const override {