aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/offsetimagefilter.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-07-16 07:06:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-16 07:06:46 -0700
commit5f7f4288442c863545d1f5067d9460008cb31c5c (patch)
tree0f1d4d85de48dbba9d3f38eead2c53d56e4d57a4 /gm/offsetimagefilter.cpp
parent8a955af001a2fb5cef2f4093214f734232c4c294 (diff)
increase gm offsetimagefilter stroke width
With a hairline width, offsetimagefilter fails to draw the rectangle on some platforms. Make the width 2 so that it shows up everywhere. TBR=reed@google.com Review URL: https://codereview.chromium.org/1236133003
Diffstat (limited to 'gm/offsetimagefilter.cpp')
-rw-r--r--gm/offsetimagefilter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gm/offsetimagefilter.cpp b/gm/offsetimagefilter.cpp
index 3808021f5d..0891ae5a85 100644
--- a/gm/offsetimagefilter.cpp
+++ b/gm/offsetimagefilter.cpp
@@ -57,6 +57,7 @@ protected:
if (clipRect.intersect(cropRectFloat)) {
SkPaint strokePaint;
strokePaint.setStyle(SkPaint::kStroke_Style);
+ strokePaint.setStrokeWidth(2);
strokePaint.setColor(SK_ColorRED);
canvas->drawRect(clipRect, strokePaint);
}