Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@13782 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2014-03-13 03:02:23 +00:00
parent 2f5820903e
commit affa77db64
3 changed files with 6 additions and 7 deletions

View File

@ -11,14 +11,14 @@
static void draw_text_stroked(SkCanvas* canvas, const SkPaint& paint) {
SkPaint p(paint);
SkPoint loc = { 20, 450 };
canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
canvas->drawPosText("P", 1, &loc, p);
p.setColor(SK_ColorRED);
p.setStyle(SkPaint::kStroke_Style);
p.setStrokeWidth(10);
canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
canvas->drawPosText("P", 1, &loc, p);
}
@ -46,10 +46,10 @@ protected:
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkPaint paint;
paint.setAntiAlias(true);
paint.setTextSize(kBelowThreshold_TextSize);
draw_text_stroked(canvas, paint);
canvas->translate(200, 0);
paint.setTextSize(kAboveThreshold_TextSize);
draw_text_stroked(canvas, paint);

View File

@ -455,7 +455,7 @@ GrEffectRef* EllipticalRRectEffect::TestCreate(SkRandom* random,
rrect.setRectXY(SkRect::MakeWH(w, h), rx, ry);
GrEffectRef* effect;
do {
GrEffectEdgeType et = random->nextBool() ? kFillAA_GrEffectEdgeType :
GrEffectEdgeType et = random->nextBool() ? kFillAA_GrEffectEdgeType :
kInverseFillAA_GrEffectEdgeType;
effect = EllipticalRRectEffect::Create(et, rrect);
} while (NULL == effect);

View File

@ -312,4 +312,3 @@ DEF_TEST(Writer32_snapshot_dynamic, reporter) {
// test it triggered COW anyway
REPORTER_ASSERT(reporter, writer.contiguousArray() != beforeData);
}