aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-08-05 09:07:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-05 09:07:12 -0700
commitd8aa59df636b6936b1b4d2e40903a87d9202c289 (patch)
treea482556579f0f8a7f88b1b6be9a5240fb6f95245 /src/gpu/SkGpuDevice.cpp
parent6c17ca5905372cb956e532a18f09d4c0f560d01a (diff)
Remove SHADER_AA_FILL_RECT flag
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 6358181d40..cd257b360a 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -488,25 +488,14 @@ void SkGpuDevice::drawRect(const SkDraw& draw, const SkRect& rect,
bool usePath = doStroke && width > 0 &&
(paint.getStrokeJoin() == SkPaint::kRound_Join ||
(paint.getStrokeJoin() == SkPaint::kBevel_Join && rect.isEmpty()));
- // another two reasons we might need to call drawPath...
- if (paint.getMaskFilter()) {
+ // a few other reasons we might need to call drawPath...
+ if (paint.getMaskFilter() ||
+ paint.getStyle() == SkPaint::kStrokeAndFill_Style) { // we can't both stroke and fill rects
usePath = true;
}
if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) {
-#ifdef SHADER_AA_FILL_RECT
- if (doStroke) {
-#endif
- usePath = true;
-#ifdef SHADER_AA_FILL_RECT
- } else {
- usePath = !draw.fMatrix->preservesRightAngles();
- }
-#endif
- }
- // until we can both stroke and fill rectangles
- if (paint.getStyle() == SkPaint::kStrokeAndFill_Style) {
usePath = true;
}