diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-29 13:24:23 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-29 13:24:23 +0000 |
commit | 0a4805e33f8ddb445a2fd061462e715e1707f049 (patch) | |
tree | 5af3146040fbaa1a6ea768833ab85453af30e5c2 /gm/rects.cpp | |
parent | 960d114777ae75da1eeb289aabd9e4638cdc7caa (diff) |
First pass at Comment API
https://codereview.chromium.org/13957009/
git-svn-id: http://skia.googlecode.com/svn/trunk@9310 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/rects.cpp')
-rw-r--r-- | gm/rects.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gm/rects.cpp b/gm/rects.cpp index 3816f9e700..eee92b35af 100644 --- a/gm/rects.cpp +++ b/gm/rects.cpp @@ -207,10 +207,14 @@ protected: } virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { + SkAutoCommentBlock acb(canvas, "onDraw"); + canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1); int testCount = 0; + canvas->addComment("Test", "Various Paints"); + for (int i = 0; i < fPaints.count(); ++i) { for (int j = 0; j < fRects.count(); ++j, ++testCount) { canvas->save(); @@ -220,6 +224,8 @@ protected: } } + canvas->addComment("Test", "Matrices"); + SkPaint paint; paint.setColor(SK_ColorWHITE); paint.setAntiAlias(true); |