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

Unified Diff: src/pathops/SkPathOpsTSect.h

Issue 1082753002: fix valgrind uninitialized issue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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: src/pathops/SkPathOpsTSect.h
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h
index ae01a1dcbabbe09b06158c65bf577af38cbff8a6..9d634333301e180c1121a28f2e4734b06cce362e 100644
--- a/src/pathops/SkPathOpsTSect.h
+++ b/src/pathops/SkPathOpsTSect.h
@@ -16,8 +16,8 @@
template<typename TCurve>
class SkTCoincident {
public:
- SkTCoincident()
- : fCoincident(false) {
+ SkTCoincident() {
+ clear();
mtklein 2015/04/13 15:55:19 this-> ?
}
void clear() {
@@ -30,9 +30,8 @@ public:
}
void init() {
- fCoincident = false;
+ clear();
SkDEBUGCODE(fPerpPt.fX = fPerpPt.fY = SK_ScalarNaN);
- SkDEBUGCODE(fPerpT = SK_ScalarNaN);
}
void markCoincident() {
« 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