diff options
author | 2012-10-23 15:33:41 +0000 | |
---|---|---|
committer | 2012-10-23 15:33:41 +0000 | |
commit | ffe9d01e39a46376e8b233d5fded3dbaec0d492e (patch) | |
tree | 0faef18771986ad2785d88da24b77118351a07ce /samplecode/SampleFatBits.cpp | |
parent | 706f66831a575bdc2b1ab1331b48b793cd487356 (diff) |
add label
git-svn-id: http://skia.googlecode.com/svn/trunk@6050 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleFatBits.cpp')
-rw-r--r-- | samplecode/SampleFatBits.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp index c3d5eaa4e4..c1ea13d3f5 100644 --- a/samplecode/SampleFatBits.cpp +++ b/samplecode/SampleFatBits.cpp @@ -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) { |