aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 18:01:05 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 18:01:05 +0000
commitfa5edbe5750632b4590ed951c594dd2766ccc4cf (patch)
treeea35a8f03a39defbaf637828d87bd52cfbc4950f /gm
parent9c28fa5579734129f1bad026b8b6aea3bf76da5f (diff)
Add effect-based clip for nine-patch SkRRects.
BUG=skia:2181 R=jvanverth@google.com, robertphillips@google.com, rmistry@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/194703011 git-svn-id: http://skia.googlecode.com/svn/trunk@13794 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r--gm/rrects.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index 6c63af9b30..b89c79ff6b 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -185,7 +185,7 @@ private:
static const int kTileY = 40;
static const int kNumSimpleCases = 7;
- static const int kNumComplexCases = 27;
+ static const int kNumComplexCases = 29;
static const SkVector gRadii[kNumComplexCases][4];
static const int kNumRRects = kNumSimpleCases + kNumComplexCases;
@@ -240,6 +240,10 @@ const SkVector RRectGM::gRadii[kNumComplexCases][4] = {
{ { 0, 0 }, { 0, 0 }, { 15, 15 }, { 0, 0 } },
{ { 0, 0 }, { 15, 15 }, { 0, 0 }, { 0, 0 } },
{ { 15, 15 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
+
+ // nine patch elliptical
+ { { 5, 7 }, { 8, 7 }, { 8, 12 }, { 5, 12 } },
+ { { 0, 7 }, { 8, 7 }, { 8, 12 }, { 0, 12 } },
};
///////////////////////////////////////////////////////////////////////////////