From 0650e811b537f21a3a9d09a953960626cf5cfce4 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 8 Apr 2011 18:07:53 +0000 Subject: 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 --- gpu/include/GrTypes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gpu/include') 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. */ -- cgit v1.2.3