aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-25 17:48:49 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-25 17:48:49 +0000
commit8e124a2454543e17e69d5f383c1a63c3d034001a (patch)
tree8dcc929127f6a6c6f5d565eeddd77dc2cddff0f4
parent7460b378d68217167013ca889a4cdcae742908e7 (diff)
Give GrGLProgramStage a virtual destructor
Review URL: http://codereview.appspot.com/6127044 git-svn-id: http://skia.googlecode.com/svn/trunk@3767 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/gpu/gl/GrGLProgramStage.cpp5
-rw-r--r--src/gpu/gl/GrGLProgramStage.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLProgramStage.cpp b/src/gpu/gl/GrGLProgramStage.cpp
index 0ba0399554..302eb07d83 100644
--- a/src/gpu/gl/GrGLProgramStage.cpp
+++ b/src/gpu/gl/GrGLProgramStage.cpp
@@ -8,6 +8,11 @@
#include "GrGLSL.h"
#include "GrGLProgramStage.h"
+GrGLProgramStage::~GrGLProgramStage() {
+}
+
+///////////////////////////////////////////////////////////////////////////////
+
GrGLProgramStageFactory::~GrGLProgramStageFactory(void) {
}
diff --git a/src/gpu/gl/GrGLProgramStage.h b/src/gpu/gl/GrGLProgramStage.h
index a56439980c..210b4c318c 100644
--- a/src/gpu/gl/GrGLProgramStage.h
+++ b/src/gpu/gl/GrGLProgramStage.h
@@ -36,7 +36,8 @@ public:
};
typedef GrTAllocator<GrGLShaderVar> VarArray;
-
+
+ virtual ~GrGLProgramStage();
/** Creates any uniform variables the vertex shader requires
and appends them to vsUnis;