| Index: src/gpu/gl/GrGLTexture.cpp
|
| diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
|
| index 2f4f49b0ce08f947230a1ad837ca8243c1ead28d..faa9f35cd41181ec45ddf93e753efca448f76d66 100644
|
| --- a/src/gpu/gl/GrGLTexture.cpp
|
| +++ b/src/gpu/gl/GrGLTexture.cpp
|
| @@ -13,15 +13,15 @@
|
|
|
| // Because this class is virtually derived from GrSurface we must explicitly call its constructor.
|
| GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc)
|
| - : GrSurface(gpu, idDesc.fIsWrapped, desc)
|
| - , INHERITED(gpu, idDesc.fIsWrapped, desc) {
|
| + : GrSurface(gpu, idDesc.fLifeCycle, desc)
|
| + , INHERITED(gpu, idDesc.fLifeCycle, desc) {
|
| this->init(desc, idDesc);
|
| this->registerWithCache();
|
| }
|
|
|
| GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, Derived)
|
| - : GrSurface(gpu, idDesc.fIsWrapped, desc)
|
| - , INHERITED(gpu, idDesc.fIsWrapped, desc) {
|
| + : GrSurface(gpu, idDesc.fLifeCycle, desc)
|
| + , INHERITED(gpu, idDesc.fLifeCycle, desc) {
|
| this->init(desc, idDesc);
|
| }
|
|
|
| @@ -30,7 +30,7 @@ void GrGLTexture::init(const GrSurfaceDesc& desc, const IDDesc& idDesc) {
|
| fTexParams.invalidate();
|
| fTexParamsTimestamp = GrGpu::kExpiredTimestamp;
|
| fTextureID = idDesc.fTextureID;
|
| - fIsWrapped = idDesc.fIsWrapped;
|
| + fIsWrapped = kWrapped_LifeCycle == idDesc.fLifeCycle;
|
| }
|
|
|
| void GrGLTexture::onRelease() {
|
|
|