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 a91a43c44e5f003b874a5efe7941496c3fc90b7a..465c10c99ac61a25947978e46ed122362937e9b3 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()  {