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

Unified Diff: include/gpu/GrTypes.h

Issue 15068008: Remove GrPathCmd (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/gpu/SkGr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | include/gpu/SkGr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698