GPU strokeAndFill only does the fill
http://codereview.appspot.com/4743047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1884 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index b39f90e..513b5bb 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -755,7 +755,7 @@
const SkPaint& paint) {
CHECK_SHOULD_DRAW(draw);
- bool doStroke = paint.getStyle() == SkPaint::kStroke_Style;
+ bool doStroke = paint.getStyle() != SkPaint::kFill_Style;
SkScalar width = paint.getStrokeWidth();
/*
@@ -772,6 +772,11 @@
if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) {
usePath = true;
}
+ // until we can both stroke and fill rectangles
+ // with large enough miter limit...
+ if (paint.getStyle() == SkPaint::kStrokeAndFill_Style) {
+ usePath = true;
+ }
if (usePath) {
SkPath path;