aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-08 18:07:53 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-08 18:07:53 +0000
commit0650e811b537f21a3a9d09a953960626cf5cfce4 (patch)
treedf28aba890ea65722392d40bd62c2014e5a766bb /gpu/include
parent39ce0ac09a375aab18659b1a4ed0c503b0b81a4c (diff)
fix use of smooth lines
Review URL:http://codereview.appspot.com/4370050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1085 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include')
-rw-r--r--gpu/include/GrTypes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpu/include/GrTypes.h b/gpu/include/GrTypes.h
index 2d8c116a36..3a55c84231 100644
--- a/gpu/include/GrTypes.h
+++ b/gpu/include/GrTypes.h
@@ -172,6 +172,16 @@ enum GrPrimitiveType {
kLineStrip_PrimitiveType
};
+static inline bool GrIsPrimTypeLines(GrPrimitiveType type) {
+ return kLines_PrimitiveType == type || kLineStrip_PrimitiveType == type;
+}
+
+static inline bool GrIsPrimTypeTris(GrPrimitiveType type) {
+ return kTriangles_PrimitiveType == type ||
+ kTriangleStrip_PrimitiveType == type ||
+ kTriangleFan_PrimitiveType == type;
+}
+
/**
* Coeffecients for alpha-blending.
*/