diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-12 13:58:36 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-12 13:58:36 +0000 |
commit | 957ebddce1764c30ec02f7e2e34d6c5cdc16007b (patch) | |
tree | 8b72cd7671acd5858de859f687a78b64be472917 /src/gpu | |
parent | f6747b0b90b3a270ec7b7bdfdc211cf5c19f28c2 (diff) |
Adding API to GrTexture to reset cached texture parameter values
REVIEW=http://codereview.appspot.com/6305084/
BUG=http://code.google.com/p/chromium/issues/detail?id=130925
git-svn-id: http://skia.googlecode.com/svn/trunk@4234 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGLTexture.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/gl/GrGLTexture.h b/src/gpu/gl/GrGLTexture.h index dd6419eb71..e408e5db94 100644 --- a/src/gpu/gl/GrGLTexture.h +++ b/src/gpu/gl/GrGLTexture.h @@ -76,7 +76,9 @@ public: virtual ~GrGLTexture() { this->release(); } - virtual intptr_t getTextureHandle() const; + virtual intptr_t getTextureHandle() const SK_OVERRIDE; + + virtual void invalidateCachedState() SK_OVERRIDE { fTexParams.invalidate(); } // these functions const TexParams& getCachedTexParams(GrGpu::ResetTimestamp* timestamp) const { @@ -105,8 +107,8 @@ public: protected: // overrides of GrTexture - virtual void onAbandon(); - virtual void onRelease(); + virtual void onAbandon() SK_OVERRIDE; + virtual void onRelease() SK_OVERRIDE; private: TexParams fTexParams; |