Index: src/gpu/gl/GrGLTexture.cpp |
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp |
index 864547ae26045ee043ec5187f2d9b52f30bec78a..e05006c46e986c914a720be71fc84b3c84acc3a3 100644 |
--- a/src/gpu/gl/GrGLTexture.cpp |
+++ b/src/gpu/gl/GrGLTexture.cpp |
@@ -15,14 +15,22 @@ |
// 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.fLifeCycle, desc) |
- , INHERITED(gpu, idDesc.fLifeCycle, desc) { |
+ , INHERITED(gpu, idDesc.fLifeCycle, desc, false) { |
+ this->init(desc, idDesc); |
+ this->registerWithCache(); |
+} |
+ |
+GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, |
+ bool wasMipMapDataProvided) |
+ : GrSurface(gpu, idDesc.fLifeCycle, desc) |
+ , INHERITED(gpu, idDesc.fLifeCycle, desc, wasMipMapDataProvided) { |
this->init(desc, idDesc); |
this->registerWithCache(); |
} |
GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, Derived) |
: GrSurface(gpu, idDesc.fLifeCycle, desc) |
- , INHERITED(gpu, idDesc.fLifeCycle, desc) { |
+ , INHERITED(gpu, idDesc.fLifeCycle, desc, false) { |
this->init(desc, idDesc); |
} |