aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-23 15:45:25 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-23 15:45:25 +0000
commit471d471dcd7422e5dd9c822c1092b2ba4721dcfe (patch)
treebaba8bd0f6e127a3b346f305f3e4b48dd4c84735 /gpu/include
parent00245c94cd25dcff96fa8d54849327dc7f7f2852 (diff)
Correctly determine whether HW AA lines can be used
Review URL: http://codereview.appspot.com/4937049/ git-svn-id: http://skia.googlecode.com/svn/trunk@2162 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include')
-rw-r--r--gpu/include/GrContext.h2
-rw-r--r--gpu/include/GrTypes.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/gpu/include/GrContext.h b/gpu/include/GrContext.h
index 2f98cdfc38..e07cf42288 100644
--- a/gpu/include/GrContext.h
+++ b/gpu/include/GrContext.h
@@ -586,7 +586,7 @@ private:
// determines whether offscreen AA should be applied
bool doOffscreenAA(GrDrawTarget* target,
const GrPaint& paint,
- bool isLines) const;
+ bool isHairLines) const;
// attempts to setup offscreen AA. All paint state must be transferred to
// target by the time this is called.
diff --git a/gpu/include/GrTypes.h b/gpu/include/GrTypes.h
index e9fb3e6a16..c51ee12e80 100644
--- a/gpu/include/GrTypes.h
+++ b/gpu/include/GrTypes.h
@@ -197,8 +197,8 @@ enum GrPrimitiveType {
kTriangleStrip_PrimitiveType,
kTriangleFan_PrimitiveType,
kPoints_PrimitiveType,
- kLines_PrimitiveType,
- kLineStrip_PrimitiveType
+ kLines_PrimitiveType, // 1 pix wide only
+ kLineStrip_PrimitiveType // 1 pix wide only
};
static inline bool GrIsPrimTypeLines(GrPrimitiveType type) {