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

Unified Diff: gm/rrects.cpp

Issue 193263002: Handle rrects with one circular corner and three square corners in GrRRectEffect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase on tot to land 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 | « expectations/gm/ignored-tests.txt ('k') | 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 cc76718b0a5f114c98a2b2a7bbc18f1910ffe74b..a79ff5462f67d71fe817c864c7eb2d1bae333a6a 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 = 23;
+ static const int kNumComplexCases = 27;
static const SkVector gRadii[kNumComplexCases][4];
static const int kNumRRects = kNumSimpleCases + kNumComplexCases;
@@ -238,6 +238,12 @@ const SkVector RRectGM::gRadii[kNumComplexCases][4] = {
{ { 20, 20 }, { 20, 20 }, { 0, 0 }, { 0, 0 } },
{ { 0, 0 }, { 0, 0 }, { 20, 20 }, { 20, 20 } },
{ { 20, 20 }, { 0, 0 }, { 0, 0 }, { 20, 20 } },
+
+ // single circular corner cases
+ { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 15, 15 } },
+ { { 0, 0 }, { 0, 0 }, { 15, 15 }, { 0, 0 } },
+ { { 0, 0 }, { 15, 15 }, { 0, 0 }, { 0, 0 } },
+ { { 15, 15 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
};
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/gpu/effects/GrRRectEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698