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:
parent
2f5820903e
commit
affa77db64
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -312,4 +312,3 @@ DEF_TEST(Writer32_snapshot_dynamic, reporter) {
|
||||
// test it triggered COW anyway
|
||||
REPORTER_ASSERT(reporter, writer.contiguousArray() != beforeData);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user