| Index: src/gpu/gl/GrGLTexture.h
|
| diff --git a/src/gpu/gl/GrGLTexture.h b/src/gpu/gl/GrGLTexture.h
|
| index 4f107aa654e83e6df3464a29c3c521cfb1df7069..11d63531cf48225c06bd52188105cf4adafb7119 100644
|
| --- a/src/gpu/gl/GrGLTexture.h
|
| +++ b/src/gpu/gl/GrGLTexture.h
|
| @@ -57,19 +57,16 @@ public:
|
| void invalidate() { memset(this, 0xff, sizeof(TexParams)); }
|
| };
|
|
|
| - struct Desc : public GrSurfaceDesc {
|
| + struct IDDesc {
|
| GrGLuint fTextureID;
|
| bool fIsWrapped;
|
| };
|
|
|
| // creates a texture that is also an RT
|
| - GrGLTexture(GrGpuGL* gpu,
|
| - const Desc& textureDesc,
|
| - const GrGLRenderTarget::Desc& rtDesc);
|
| + GrGLTexture(GrGpuGL* gpu, const GrSurfaceDesc&, const IDDesc&, const GrGLRenderTarget::IDDesc&);
|
|
|
| // creates a non-RT texture
|
| - GrGLTexture(GrGpuGL* gpu,
|
| - const Desc& textureDesc);
|
| + GrGLTexture(GrGpuGL* gpu, const GrSurfaceDesc&, const IDDesc&);
|
|
|
| virtual ~GrGLTexture() { this->release(); }
|
|
|
| @@ -101,9 +98,7 @@ private:
|
| GrGpu::ResetTimestamp fTexParamsTimestamp;
|
| SkAutoTUnref<GrGLTexID> fTexIDObj;
|
|
|
| - void init(GrGpuGL* gpu,
|
| - const Desc& textureDesc,
|
| - const GrGLRenderTarget::Desc* rtDesc);
|
| + void init(GrGpuGL* gpu, const GrSurfaceDesc&, const IDDesc&, const GrGLRenderTarget::IDDesc*);
|
|
|
| typedef GrTexture INHERITED;
|
| };
|
|
|