diff options
author | 2017-01-03 09:42:58 -0500 | |
---|---|---|
committer | 2017-01-03 15:22:16 +0000 | |
commit | f8334781914363caf537f22f012fcd5c03c60dad (patch) | |
tree | cfa54aa4a80cd7841959300c245d633fbcd382a0 /src/gpu/instanced/GLInstancedRendering.cpp | |
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 'src/gpu/instanced/GLInstancedRendering.cpp')
-rw-r--r-- | src/gpu/instanced/GLInstancedRendering.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/instanced/GLInstancedRendering.cpp b/src/gpu/instanced/GLInstancedRendering.cpp index da764b2d2e..0d2a2ddb9c 100644 --- a/src/gpu/instanced/GLInstancedRendering.cpp +++ b/src/gpu/instanced/GLInstancedRendering.cpp @@ -60,7 +60,9 @@ inline GrGLGpu* GLInstancedRendering::glGpu() const { return static_cast<GrGLGpu*>(this->gpu()); } -sk_sp<InstancedRendering::Op> GLInstancedRendering::makeOp() { return sk_sp<Op>(new GLOp(this)); } +std::unique_ptr<InstancedRendering::Op> GLInstancedRendering::makeOp() { + return std::unique_ptr<Op>(new GLOp(this)); +} void GLInstancedRendering::onBeginFlush(GrResourceProvider* rp) { // Count what there is to draw. |