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

Unified Diff: gm/rrects.cpp

Issue 175423002: Add effect-based clipping for circular "tab" style rrects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix gcc warnings Created 6 years, 10 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 | src/gpu/effects/GrRRectEffect.cpp » ('j') | no next file with comments »
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 9e07703b4395ec387bc77570d4bdce2add5a0e61..35120c119efee8d6fc16362a32acc21743cc091c 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -98,7 +98,7 @@ private:
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 @@ const SkVector RRectGM::gRadii[kNumComplexCases][4] = {
{ { 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 } },
};
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | src/gpu/effects/GrRRectEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698