Fix dangling ptr when GrRenderTarget outlives its GrTexture representation
Move management of fRenderTarget ptr from GL texture class to base class
Minor:
Remove redundant GrContext-per-frame debug code in SampleApp.cpp
Add GrTexture.cpp to legacy VS2010 vcxproj
Review URL: http://codereview.appspot.com/4352051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1061 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrGLTexture.h b/gpu/include/GrGLTexture.h
index 2cd833c..7924cc3 100644
--- a/gpu/include/GrGLTexture.h
+++ b/gpu/include/GrGLTexture.h
@@ -125,9 +125,7 @@
virtual ~GrGLTexture() { this->release(); }
- // overloads of GrTexture
- virtual GrRenderTarget* asRenderTarget();
- virtual void releaseRenderTarget();
+ // overrides of GrTexture
virtual void uploadTextureData(uint32_t x,
uint32_t y,
uint32_t width,
@@ -198,7 +196,7 @@
const GLRenderTargetIDs& rtIDs,
const TexParams& initialTexParams);
- // overloads of GrResource
+ // overrides of GrTexture
virtual void onAbandon();
virtual void onRelease();
@@ -214,7 +212,6 @@
GrScalar fScaleX;
GrScalar fScaleY;
Orientation fOrientation;
- GrGLRenderTarget* fRenderTarget;
GrGpuGL* fGpuGL;
static const GrGLenum* WrapMode2GLWrap();