diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-10 17:14:06 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-10 17:14:06 +0000 |
commit | 94b284d719ee5ccd3e2efbd1d7084ec554583bac (patch) | |
tree | bfc08927ea287598a8fdda506e15900301f9bff6 /include | |
parent | 512c9b65fc9fd6d298892719aeda2a8bcd377ac5 (diff) |
Remove GrPathCmd
R=reed@google.com
Review URL: https://codereview.chromium.org/15068008
git-svn-id: http://skia.googlecode.com/svn/trunk@9097 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrTypes.h | 33 | ||||
-rw-r--r-- | include/gpu/SkGr.h | 9 |
2 files changed, 0 insertions, 42 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 5e48dac460..c848def047 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 diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h index cf37f47218..69d811ff4a 100644 --- a/include/gpu/SkGr.h +++ b/include/gpu/SkGr.h @@ -45,15 +45,6 @@ GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); #define sk_blend_to_grblend(X) ((GrBlendCoeff)(X)) -GR_STATIC_ASSERT((int)SkPath::kMove_Verb == (int)kMove_PathCmd); -GR_STATIC_ASSERT((int)SkPath::kLine_Verb == (int)kLine_PathCmd); -GR_STATIC_ASSERT((int)SkPath::kQuad_Verb == (int)kQuadratic_PathCmd); -GR_STATIC_ASSERT((int)SkPath::kCubic_Verb == (int)kCubic_PathCmd); -GR_STATIC_ASSERT((int)SkPath::kClose_Verb == (int)kClose_PathCmd); -GR_STATIC_ASSERT((int)SkPath::kDone_Verb == (int)kEnd_PathCmd); - -#define sk_path_verb_to_gr_path_command(X) ((GrPathCmd)(X)) - /////////////////////////////////////////////////////////////////////////////// #include "SkColorPriv.h" |