fix for valgrind uninit variables
authorjoshualitt <joshualitt@chromium.org>
Wed, 10 Dec 2014 20:28:08 +0000 (12:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Dec 2014 20:28:08 +0000 (12:28 -0800)
TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/793773002

src/gpu/GrDrawState.cpp

index a91a43c..465c10c 100644 (file)
@@ -117,6 +117,9 @@ void GrDrawState::onReset(const SkMatrix* initialViewMatrix) {
 
     fColorProcInfoValid = false;
     fCoverageProcInfoValid = false;
+
+    fColorCache = GrColor_ILLEGAL;
+    fCoverageCache = GrColor_ILLEGAL;
 }
 
 bool GrDrawState::setIdentityViewMatrix()  {