Add effect-based clipping for circular "tab" style rrects.
BUG=skia:2181
R=jvanverth@google.com, robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/175423002
git-svn-id: http://skia.googlecode.com/svn/trunk@13548 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index 9e07703..35120c1 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -98,7 +98,7 @@
static const int kTileY = 40;
static const int kNumSimpleCases = 7;
- static const int kNumComplexCases = 19;
+ static const int kNumComplexCases = 23;
static const SkVector gRadii[kNumComplexCases][4];
static const int kNumRRects = kNumSimpleCases + kNumComplexCases;
@@ -141,6 +141,12 @@
{ { 0, 0 }, { 100, 400 }, { 0, 0 }, { 0, 0 } },
{ { 0, 0 }, { 400, 400 }, { 0, 0 }, { 0, 0 } },
{ { 400, 400 }, { 400, 400 }, { 400, 400 }, { 400, 400 } },
+
+ // circular corner tabs
+ { { 0, 0 }, { 20, 20 }, { 20, 20 }, { 0, 0 } },
+ { { 20, 20 }, { 20, 20 }, { 0, 0 }, { 0, 0 } },
+ { { 0, 0 }, { 0, 0 }, { 20, 20 }, { 20, 20 } },
+ { { 20, 20 }, { 0, 0 }, { 0, 0 }, { 20, 20 } },
};
///////////////////////////////////////////////////////////////////////////////