Index: include/gpu/GrTypes.h |
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
index 5e48dac460e54e40efaf6d44ab8e01df4cc68cab..c848def047f40e520ec6a5f11e83751c7f66f2e3 100644 |
--- a/include/gpu/GrTypes.h |
+++ b/include/gpu/GrTypes.h |
@@ -500,39 +500,6 @@ enum GrClipType { |
kPath_ClipType |
}; |
-/** |
- * Commands used to describe a path. Each command |
- * is accompanied by some number of points. |
- */ |
-enum GrPathCmd { |
- kMove_PathCmd, //!< Starts a new subpath at |
- // at the returned point |
- // 1 point |
- kLine_PathCmd, //!< Adds a line segment |
- // 2 points |
- kQuadratic_PathCmd, //!< Adds a quadratic segment |
- // 3 points |
- kCubic_PathCmd, //!< Adds a cubic segment |
- // 4 points |
- kClose_PathCmd, //!< Closes the current subpath |
- // by connecting a line to the |
- // starting point. |
- // 0 points |
- kEnd_PathCmd //!< Indicates the end of the last subpath |
- // when iterating |
- // 0 points. |
-}; |
- |
-/** |
- * Gets the number of points associated with a path command. |
- */ |
-static int inline NumPathCmdPoints(GrPathCmd cmd) { |
- static const int gNumPoints[] = { |
- 1, 2, 3, 4, 0, 0 |
- }; |
- return gNumPoints[cmd]; |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
// opaque type for 3D API object handles |