aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-12 13:58:36 +0000
committerGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-12 13:58:36 +0000
commit957ebddce1764c30ec02f7e2e34d6c5cdc16007b (patch)
tree8b72cd7671acd5858de859f687a78b64be472917 /src
parentf6747b0b90b3a270ec7b7bdfdc211cf5c19f28c2 (diff)
Adding API to GrTexture to reset cached texture parameter values
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLTexture.h8
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;