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

Unified Diff: gm/rects.cpp

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review issues Created 7 years, 7 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
« no previous file with comments | « debugger/SkDrawCommand.cpp ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rects.cpp
===================================================================
--- gm/rects.cpp (revision 9288)
+++ gm/rects.cpp (working copy)
@@ -207,10 +207,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();
@@ -220,6 +224,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698