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

Unified Diff: cc/base/math_util.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 years, 3 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: cc/base/math_util.cc
diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
index 6e5ac0bd45db73b47d318a7d4b3aef0f42af0078..fa7eccfb38135c6c779cee84074e22c6f13630b1 100644
--- a/cc/base/math_util.cc
+++ b/cc/base/math_util.cc
@@ -779,6 +779,15 @@ void MathUtil::AddToTracedValue(const char* name,
}
void MathUtil::AddToTracedValue(const char* name,
+ const gfx::Point& pt,
+ base::trace_event::TracedValue* res) {
+ res->BeginArray(name);
+ res->AppendInteger(pt.x());
+ res->AppendInteger(pt.y());
+ res->EndArray();
+}
+
+void MathUtil::AddToTracedValue(const char* name,
const gfx::PointF& pt,
base::trace_event::TracedValue* res) {
res->BeginArray(name);

Powered by Google App Engine
This is Rietveld 408576698