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

Unified Diff: skia/ext/analysis_canvas.cc

Issue 2264673003: Add override to AnalysisCanvas for new SkCanvas virtual, onDrawArc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « skia/ext/analysis_canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas.cc
diff --git a/skia/ext/analysis_canvas.cc b/skia/ext/analysis_canvas.cc
index 043946d83514dddcd8edb58f9079d1af01fe7185..1e32618868e9672bd024ca3f28b4d42fd110ae68 100644
--- a/skia/ext/analysis_canvas.cc
+++ b/skia/ext/analysis_canvas.cc
@@ -175,6 +175,17 @@ void AnalysisCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) {
++draw_op_count_;
}
+void AnalysisCanvas::onDrawArc(const SkRect& oval,
+ SkScalar startAngle,
+ SkScalar sweepAngle,
+ bool useCenter,
+ const SkPaint& paint) {
+ TRACE_EVENT0("disabled-by-default-skia", "AnalysisCanvas::onDrawArc");
+ is_solid_color_ = false;
+ is_transparent_ = false;
+ ++draw_op_count_;
+}
+
void AnalysisCanvas::onDrawRRect(const SkRRect& rr, const SkPaint& paint) {
TRACE_EVENT0("disabled-by-default-skia", "AnalysisCanvas::onDrawRRect");
// This should add the SkRRect to an SkPath, and call
« no previous file with comments | « skia/ext/analysis_canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698