Translated clip GMs to increase stability

http://codereview.appspot.com/6458064/

This will require rebaselining of complexclip2* & simplaaaclip*



git-svn-id: http://skia.googlecode.com/svn/trunk@4905 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-08-02 12:37:01 +00:00
Родитель 2bf82d843d
Коммит ab5ec7e3a5
2 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -21,19 +21,19 @@ public:
this->setBGColor(SkColorSetRGB(0xDD,0xA0,0xDD));
// offset the rects a bit so we get antialiasing even in the rect case
SkScalar xA = SkFloatToScalar(0.5f);
SkScalar xB = SkFloatToScalar(10.5f);
SkScalar xC = SkFloatToScalar(20.5f);
SkScalar xD = SkFloatToScalar(30.5f);
SkScalar xE = SkFloatToScalar(40.5f);
SkScalar xF = SkFloatToScalar(50.5f);
SkScalar xA = SkFloatToScalar(0.65f);
SkScalar xB = SkFloatToScalar(10.65f);
SkScalar xC = SkFloatToScalar(20.65f);
SkScalar xD = SkFloatToScalar(30.65f);
SkScalar xE = SkFloatToScalar(40.65f);
SkScalar xF = SkFloatToScalar(50.65f);
SkScalar yA = SkFloatToScalar(0.5f);
SkScalar yB = SkFloatToScalar(10.5f);
SkScalar yC = SkFloatToScalar(20.5f);
SkScalar yD = SkFloatToScalar(30.5f);
SkScalar yE = SkFloatToScalar(40.5f);
SkScalar yF = SkFloatToScalar(50.5f);
SkScalar yA = SkFloatToScalar(0.65f);
SkScalar yB = SkFloatToScalar(10.65f);
SkScalar yC = SkFloatToScalar(20.65f);
SkScalar yD = SkFloatToScalar(30.65f);
SkScalar yE = SkFloatToScalar(40.65f);
SkScalar yF = SkFloatToScalar(50.65f);
fWidth = xF - xA;
fHeight = yF - yA;

Просмотреть файл

@ -53,10 +53,10 @@ public:
: fGeomType(geomType) {
// offset the rects a bit so we get anti-aliasing in the rect case
fBase.set(SkFloatToScalar(100.5f),
SkFloatToScalar(100.5f),
SkFloatToScalar(150.5f),
SkFloatToScalar(150.5f));
fBase.set(SkFloatToScalar(100.65f),
SkFloatToScalar(100.65f),
SkFloatToScalar(150.65f),
SkFloatToScalar(150.65f));
fRect = fBase;
fRect.inset(5, 5);
fRect.offset(25, 25);