diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-20 15:13:49 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-20 15:13:49 +0000 |
commit | f1077f916427c99bdec655da4c3b9eea70423685 (patch) | |
tree | 536610a55d61054d4b3478454779747b7d8a436c /src | |
parent | f7159bba8efc13f6b3a9a86e92b48451b6aa8073 (diff) |
Add extra warnings to match what Android uses.
R=mtklein@google.com
Committed: https://code.google.com/p/skia/source/detail?r=12310
Review URL: https://codereview.chromium.org/74193005
git-svn-id: http://skia.googlecode.com/svn/trunk@12314 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/animator/SkScriptCallBack.h | 2 | ||||
-rw-r--r-- | src/core/SkBuffer.h | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGLProgramEffects.h | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/animator/SkScriptCallBack.h b/src/animator/SkScriptCallBack.h index dcbaf11886..fefc482f61 100644 --- a/src/animator/SkScriptCallBack.h +++ b/src/animator/SkScriptCallBack.h @@ -13,6 +13,8 @@ class SkScriptCallBack { public: + virtual ~SkScriptCallBack() { } + enum Type { kBox, kFunction, diff --git a/src/core/SkBuffer.h b/src/core/SkBuffer.h index 369d9c02ac..9791cf55a1 100644 --- a/src/core/SkBuffer.h +++ b/src/core/SkBuffer.h @@ -39,6 +39,8 @@ public: fStop = (const char*)data + size; } + virtual ~SkRBuffer() { } + /** Return the number of bytes that have been read from the beginning of the data pointer. */ diff --git a/src/gpu/gl/GrGLProgramEffects.h b/src/gpu/gl/GrGLProgramEffects.h index 4572a4250d..3320891b37 100644 --- a/src/gpu/gl/GrGLProgramEffects.h +++ b/src/gpu/gl/GrGLProgramEffects.h @@ -129,6 +129,8 @@ protected: */ class GrGLProgramEffectsBuilder { public: + virtual ~GrGLProgramEffectsBuilder() { } + /** * Emits the effect's shader code, and stores the necessary uniforms internally. */ @@ -211,6 +213,7 @@ private: class GrGLVertexProgramEffectsBuilder : public GrGLProgramEffectsBuilder { public: GrGLVertexProgramEffectsBuilder(GrGLFullShaderBuilder*, int reserveCount); + virtual ~GrGLVertexProgramEffectsBuilder() { } virtual void emitEffect(const GrEffectStage&, GrGLProgramEffects::EffectKey, @@ -298,6 +301,7 @@ private: class GrGLTexGenProgramEffectsBuilder : public GrGLProgramEffectsBuilder { public: GrGLTexGenProgramEffectsBuilder(GrGLFragmentOnlyShaderBuilder*, int reserveCount); + virtual ~GrGLTexGenProgramEffectsBuilder() { } virtual void emitEffect(const GrEffectStage&, GrGLProgramEffects::EffectKey, |