From fa5edbe5750632b4590ed951c594dd2766ccc4cf Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 13 Mar 2014 18:01:05 +0000 Subject: 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 --- gm/rrects.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gm/rrects.cpp') 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 } }, }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3