Fix Sample App on Win32 GL window resize, fix sk->gr convexity hint, fix grpath uninit warnings
Review URL http://codereview.appspot.com/4247055/
git-svn-id: http://skia.googlecode.com/svn/trunk@895 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrPathIter.h b/gpu/include/GrPathIter.h
index f310184..55427c0 100644
--- a/gpu/include/GrPathIter.h
+++ b/gpu/include/GrPathIter.h
@@ -50,7 +50,7 @@
*
* @return a hint about the convexity of the path.
*/
- virtual GrConvexHint convexHint() const { return kNone_ConvexHint; }
+ virtual GrConvexHint convexHint() const = 0;
/**
* Iterates through the path. Should not be called after
diff --git a/gpu/src/GrPath.cpp b/gpu/src/GrPath.cpp
index 019b2fd..1e5a6cf 100644
--- a/gpu/src/GrPath.cpp
+++ b/gpu/src/GrPath.cpp
@@ -152,24 +152,24 @@
fConvexHint = iter->convexHint();
// first point of the subpath
- GrPoint firstPt;
+ GrPoint firstPt(0,0);
// first edge of the subpath
- GrVec firstVec;
+ GrVec firstVec(0,0);
// vec of most recently processed edge, that wasn't degenerate
- GrVec previousVec;
+ GrVec previousVec(0,0);
// most recently processed point
- GrPoint previousPt;
+ GrPoint previousPt(0,0);
// sign indicates whether we're bending left or right
- GrScalar turnDir;
+ GrScalar turnDir = 0;
// number of times the direction has flipped in x or y
// we track which direction we are moving in x/y and the
// number of times it changes.
- int xDir;
- int yDir;
- int flipX;
- int flipY;
+ int xDir = 0;
+ int yDir = 0;
+ int flipX = 0;
+ int flipY = 0;
// counts number of sub path pts that didn't add a degenerate edge.
int subPathPts = 0;