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

Unified Diff: gm/rects.cpp

Issue 1153593003: Remove the SkCanvas comment API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 6 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 | « experimental/PdfViewer/SkNulCanvas.h ('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
diff --git a/gm/rects.cpp b/gm/rects.cpp
index 8fb113d76f6fa19974ecc4a6e6299566950fb216..c4d5880e14b1fa5972d9c891f091c464da13fbba 100644
--- a/gm/rects.cpp
+++ b/gm/rects.cpp
@@ -252,14 +252,10 @@ protected:
}
void onDraw(SkCanvas* canvas) 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();
@@ -269,8 +265,6 @@ protected:
}
}
- canvas->addComment("Test", "Matrices");
-
SkPaint paint;
paint.setColor(SK_ColorWHITE);
paint.setAntiAlias(true);
« no previous file with comments | « experimental/PdfViewer/SkNulCanvas.h ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698