Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3214)

Unified Diff: bench/GLInstancedArraysBench.cpp

Issue 1217843002: Fix for valgrind use of uninitialized variable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GLInstancedArraysBench.cpp
diff --git a/bench/GLInstancedArraysBench.cpp b/bench/GLInstancedArraysBench.cpp
index f75b094e3ece8e904693c543284dcee910a919e3..a6b46b7d5a1b1f9e71c8f516520bfa727f593bd4 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698