diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-03 09:42:58 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-03 15:22:16 +0000 |
commit | f8334781914363caf537f22f012fcd5c03c60dad (patch) | |
tree | cfa54aa4a80cd7841959300c245d633fbcd382a0 /tools/gpu | |
parent | 5f500920e719b215d5e0e36a6679995ed3c9b4ad (diff) |
Remove ref counting from GrOp.
Instead use std::unique_ptr to manage GrOp lifetime.
Change-Id: Ic1dc1e0ffd7254c3994221f498677af5bbf66a71
Reviewed-on: https://skia-review.googlesource.com/6479
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/GrTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 79891f4b44..61703b5121 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -229,7 +229,8 @@ void GrResourceCache::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newT void GrRenderTargetContextPriv::testingOnly_addDrawOp(const GrPaint& paint, GrAAType aaType, - sk_sp<GrDrawOp> op, + std::unique_ptr<GrDrawOp> + op, const GrUserStencilSettings* uss, bool snapToCenters) { ASSERT_SINGLE_OWNER @@ -247,7 +248,7 @@ void GrRenderTargetContextPriv::testingOnly_addDrawOp(const GrPaint& paint, } fRenderTargetContext->getOpList()->addDrawOp(pipelineBuilder, fRenderTargetContext, GrNoClip(), - op); + std::move(op)); } #undef ASSERT_SINGLE_OWNER |