aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-06-29 06:58:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-29 06:58:06 -0700
commite784db417d72ce08828c572ed107e91222e0c0f1 (patch)
tree31783ff52e51bcea7bd0a5f32d4121e3001df85b /bench
parent9d5447a47f3d8d8722f23ba750f68822194e1145 (diff)
Fix for valgrind use of uninitialized variable
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1217843002
Diffstat (limited to 'bench')
-rw-r--r--bench/GLInstancedArraysBench.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/bench/GLInstancedArraysBench.cpp b/bench/GLInstancedArraysBench.cpp
index f75b094e3e..a6b46b7d5a 100644
--- a/bench/GLInstancedArraysBench.cpp
+++ b/bench/GLInstancedArraysBench.cpp
@@ -27,6 +27,9 @@
* issued.
*/
class GLInstancedArraysBench : public Benchmark {
+public:
+ GLInstancedArraysBench() : fTexture(0) {}
+
protected:
void onPerCanvasPreDraw(SkCanvas* canvas) override;
virtual void setup(const GrGLContext*)=0;
@@ -78,7 +81,9 @@ public:
*/
GLCpuPosInstancedArraysBench(VboSetup vboSetup, int32_t drawDiv)
: fVboSetup(vboSetup)
- , fDrawDiv(drawDiv) {
+ , fDrawDiv(drawDiv)
+ , fProgram(0)
+ , fVAO(0) {
fName = VboSetupToStr(vboSetup, fDrawDiv);
}