add label

git-svn-id: http://skia.googlecode.com/svn/trunk@6050 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-10-23 15:33:41 +00:00
parent 706f66831a
commit ffe9d01e39

View File

@ -371,6 +371,19 @@ protected:
fFB.drawLine(canvas, fPts);
}
fFB.drawFG(canvas);
{
SkString str;
str.printf("%s %s %s",
fFB.getAA() ? "AA" : "BW",
FatBits::kHair_Style == fFB.getStyle() ? "Hair" : "Stroke",
fFB.getUseGPU() ? "GPU" : "CPU");
SkPaint paint;
paint.setAntiAlias(true);
paint.setTextSize(16);
paint.setColor(SK_ColorBLUE);
canvas->drawText(str.c_str(), str.size(), 10, 16, paint);
}
}
virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y) {