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

Unified Diff: src/core/SkRecordDraw.cpp

Issue 695403003: Add comments to SkRecordDraw to help people follow. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « src/core/SkRecordDraw.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index 07c02b6a3d90ae45759d5ecadf265acc38a52a51..560607937d071f0a3ea4feb4c43f596daca781b1 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -33,6 +33,9 @@ void SkRecordDraw(const SkRecord& record,
if (callback && callback->abortDrawing()) {
return;
}
+ // This visit call uses the SkRecords::Draw::operator() to call
+ // methods on the |canvas|, wrapped by methods defined with the
+ // DRAW() macro.
record.visit<void>(ops[i], draw);
}
} else {
@@ -42,6 +45,9 @@ void SkRecordDraw(const SkRecord& record,
if (callback && callback->abortDrawing()) {
return;
}
+ // This visit call uses the SkRecords::Draw::operator() to call
+ // methods on the |canvas|, wrapped by methods defined with the
+ // DRAW() macro.
record.visit<void>(i, draw);
}
}
« no previous file with comments | « src/core/SkRecordDraw.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698