| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 850309797cf7d7e63b502aaaac2757dc4962e5a4..7ae2c99825109125117da824b5b99e9a52f1b7f3 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -37,16 +37,8 @@ GrDrawTarget::DrawInfo& GrDrawTarget::DrawInfo::operator =(const DrawInfo& di) {
|
| fVerticesPerInstance = di.fVerticesPerInstance;
|
| fIndicesPerInstance = di.fIndicesPerInstance;
|
|
|
| - if (di.fDevBounds) {
|
| - SkASSERT(di.fDevBounds == &di.fDevBoundsStorage);
|
| - fDevBoundsStorage = di.fDevBoundsStorage;
|
| - fDevBounds = &fDevBoundsStorage;
|
| - } else {
|
| - fDevBounds = NULL;
|
| - }
|
| -
|
| - this->setVertexBuffer(di.vertexBuffer());
|
| - this->setIndexBuffer(di.indexBuffer());
|
| + fVertexBuffer.reset(di.vertexBuffer());
|
| + fIndexBuffer.reset(di.indexBuffer());
|
|
|
| return *this;
|
| }
|
|
|