Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: gm/rrects.cpp

Issue 194703011: Add effect-based clip for nine-patch SkRRects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkRRect.h » ('j') | src/gpu/effects/GrRRectEffect.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rrects.cpp
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index a79ff5462f67d71fe817c864c7eb2d1bae333a6a..2b177a269775c90956557a836c62df37b8a4b48d 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -189,7 +189,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;
@@ -244,6 +244,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 } },
};
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | include/core/SkRRect.h » ('j') | src/gpu/effects/GrRRectEffect.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698