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

Unified Diff: gm/rects.cpp

Issue 54213002: add some GM tests for rects (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rects.cpp
diff --git a/gm/rects.cpp b/gm/rects.cpp
index fb70dd76b48a219672220447f9e5f0a2ecdf8672..febf553aa159c187027b862daad3acdec9e66cf1 100644
--- a/gm/rects.cpp
+++ b/gm/rects.cpp
@@ -50,6 +50,15 @@ protected:
}
{
+ // AA with translucent
+ SkPaint p;
+ p.setColor(SK_ColorWHITE);
+ p.setAntiAlias(true);
+ p.setAlpha(0x66);
+ fPaints.push_back(p);
+ }
+
+ {
// AA with mask filter
SkPaint p;
p.setColor(SK_ColorWHITE);
@@ -108,6 +117,28 @@ protected:
}
{
+ // AA with bevel-stroke style
+ SkPaint p;
+ p.setColor(SK_ColorWHITE);
+ p.setAntiAlias(true);
+ p.setStyle(SkPaint::kStroke_Style);
+ p.setStrokeJoin(SkPaint::kBevel_Join);
+ p.setStrokeWidth(SkIntToScalar(3));
+ fPaints.push_back(p);
+ }
+
+ {
+ // AA with round-stroke style
+ SkPaint p;
+ p.setColor(SK_ColorWHITE);
+ p.setAntiAlias(true);
+ p.setStyle(SkPaint::kStroke_Style);
+ p.setStrokeJoin(SkPaint::kRound_Join);
+ p.setStrokeWidth(SkIntToScalar(3));
+ fPaints.push_back(p);
+ }
+
+ {
// AA with stroke style, width = 0
SkPaint p;
p.setColor(SK_ColorWHITE);
@@ -117,6 +148,16 @@ protected:
}
{
+ // AA with stroke style, width wider than rect width and/or height
+ SkPaint p;
+ p.setColor(SK_ColorWHITE);
+ p.setAntiAlias(true);
+ p.setStyle(SkPaint::kStroke_Style);
+ p.setStrokeWidth(SkIntToScalar(40));
+ fPaints.push_back(p);
+ }
+
+ {
// AA with stroke and fill style
SkPaint p;
p.setColor(SK_ColorWHITE);
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698