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

Side by Side Diff: src/core/SkPath.cpp

Issue 1917223006: Fix warnings that were exposed when running with SK_DEBUG enable on an optimized release build. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/animator/SkDrawBitmap.cpp ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkBuffer.h" 8 #include "SkBuffer.h"
9 #include "SkCubicClipper.h" 9 #include "SkCubicClipper.h"
10 #include "SkErrorInternals.h" 10 #include "SkErrorInternals.h"
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 // only valid for a single contour 2243 // only valid for a single contour
2244 struct Convexicator { 2244 struct Convexicator {
2245 Convexicator() 2245 Convexicator()
2246 : fPtCount(0) 2246 : fPtCount(0)
2247 , fConvexity(SkPath::kConvex_Convexity) 2247 , fConvexity(SkPath::kConvex_Convexity)
2248 , fFirstDirection(SkPathPriv::kUnknown_FirstDirection) 2248 , fFirstDirection(SkPathPriv::kUnknown_FirstDirection)
2249 , fIsFinite(true) 2249 , fIsFinite(true)
2250 , fIsCurve(false) { 2250 , fIsCurve(false) {
2251 fExpectedDir = kInvalid_DirChange; 2251 fExpectedDir = kInvalid_DirChange;
2252 // warnings 2252 // warnings
2253 fPriorPt.set(0,0);
2253 fLastPt.set(0, 0); 2254 fLastPt.set(0, 0);
2254 fCurrPt.set(0, 0); 2255 fCurrPt.set(0, 0);
2255 fLastVec.set(0, 0); 2256 fLastVec.set(0, 0);
2256 fFirstVec.set(0, 0); 2257 fFirstVec.set(0, 0);
2257 2258
2258 fDx = fDy = 0; 2259 fDx = fDy = 0;
2259 fSx = fSy = kValueNeverReturnedBySign; 2260 fSx = fSy = kValueNeverReturnedBySign;
2260 } 2261 }
2261 2262
2262 SkPath::Convexity getConvexity() const { return fConvexity; } 2263 SkPath::Convexity getConvexity() const { return fConvexity; }
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
3225 } 3226 }
3226 } while (!done); 3227 } while (!done);
3227 return SkToBool(tangents.count()) ^ isInverse; 3228 return SkToBool(tangents.count()) ^ isInverse;
3228 } 3229 }
3229 3230
3230 int SkPath::ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPo int& p2, 3231 int SkPath::ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPo int& p2,
3231 SkScalar w, SkPoint pts[], int pow2) { 3232 SkScalar w, SkPoint pts[], int pow2) {
3232 const SkConic conic(p0, p1, p2, w); 3233 const SkConic conic(p0, p1, p2, w);
3233 return conic.chopIntoQuadsPOW2(pts, pow2); 3234 return conic.chopIntoQuadsPOW2(pts, pow2);
3234 } 3235 }
OLDNEW
« no previous file with comments | « src/animator/SkDrawBitmap.cpp ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698