add some GM tests for rects
BUG= R=robertphillips@google.com, bsalomon@google.com Author: yunchao.he@intel.com Review URL: https://codereview.chromium.org/54213002 git-svn-id: http://skia.googlecode.com/svn/trunk@12073 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
18bb41e956
commit
a0fd1b3407
@ -39,3 +39,6 @@ pdf-poppler
|
||||
|
||||
# Added by bsalomon in https://codereview.chromium.org/31033002
|
||||
verylargebitmap
|
||||
|
||||
# Added by yunchao in https://codereview.chromium.org/54213002
|
||||
rects
|
||||
|
41
gm/rects.cpp
41
gm/rects.cpp
@ -49,6 +49,15 @@ protected:
|
||||
fPaints.push_back(p);
|
||||
}
|
||||
|
||||
{
|
||||
// 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;
|
||||
@ -107,6 +116,28 @@ protected:
|
||||
fPaints.push_back(p);
|
||||
}
|
||||
|
||||
{
|
||||
// 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;
|
||||
@ -116,6 +147,16 @@ protected:
|
||||
fPaints.push_back(p);
|
||||
}
|
||||
|
||||
{
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user