Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: gm/rects.cpp

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: moved to beginCommentGroup/endCommentGroup Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gm/rects.cpp
===================================================================
--- gm/rects.cpp (revision 8806)
+++ gm/rects.cpp (working copy)
@@ -200,10 +200,14 @@
}
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();
@@ -213,6 +217,8 @@
}
}
+ canvas->addComment("Test", "Matrices");
+
SkPaint paint;
paint.setColor(SK_ColorWHITE);
paint.setAntiAlias(true);
« no previous file with comments | « debugger/SkDrawCommand.cpp ('k') | include/core/SkCanvas.h » ('j') | include/core/SkCanvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698