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

Side by Side Diff: cc/base/math_util.h

Issue 394193003: Implement HiDPI and pinch-zoom scaling of filter params (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra headers; unneeded code in tests Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/BUILD.gn ('k') | cc/base/math_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_BASE_MATH_UTIL_H_ 5 #ifndef CC_BASE_MATH_UTIL_H_
6 #define CC_BASE_MATH_UTIL_H_ 6 #define CC_BASE_MATH_UTIL_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <cmath> 9 #include <cmath>
10 #include <vector> 10 #include <vector>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 static void AddToTracedValue(const gfx::SizeF& s, 197 static void AddToTracedValue(const gfx::SizeF& s,
198 base::debug::TracedValue* res); 198 base::debug::TracedValue* res);
199 static void AddToTracedValue(const gfx::Rect& r, 199 static void AddToTracedValue(const gfx::Rect& r,
200 base::debug::TracedValue* res); 200 base::debug::TracedValue* res);
201 static void AddToTracedValue(const gfx::PointF& q, 201 static void AddToTracedValue(const gfx::PointF& q,
202 base::debug::TracedValue* res); 202 base::debug::TracedValue* res);
203 static void AddToTracedValue(const gfx::Point3F&, 203 static void AddToTracedValue(const gfx::Point3F&,
204 base::debug::TracedValue* res); 204 base::debug::TracedValue* res);
205 static void AddToTracedValue(const gfx::Vector2d& v, 205 static void AddToTracedValue(const gfx::Vector2d& v,
206 base::debug::TracedValue* res); 206 base::debug::TracedValue* res);
207 static void AddToTracedValue(const gfx::Vector2dF& v,
208 base::debug::TracedValue* res);
207 static void AddToTracedValue(const gfx::QuadF& q, 209 static void AddToTracedValue(const gfx::QuadF& q,
208 base::debug::TracedValue* res); 210 base::debug::TracedValue* res);
209 static void AddToTracedValue(const gfx::RectF& rect, 211 static void AddToTracedValue(const gfx::RectF& rect,
210 base::debug::TracedValue* res); 212 base::debug::TracedValue* res);
211 static void AddToTracedValue(const gfx::Transform& transform, 213 static void AddToTracedValue(const gfx::Transform& transform,
212 base::debug::TracedValue* res); 214 base::debug::TracedValue* res);
213 static void AddToTracedValue(const gfx::BoxF& box, 215 static void AddToTracedValue(const gfx::BoxF& box,
214 base::debug::TracedValue* res); 216 base::debug::TracedValue* res);
215 217
216 // Returns a base::Value representation of the floating point value. 218 // Returns a base::Value representation of the floating point value.
217 // If the value is inf, returns max double/float representation. 219 // If the value is inf, returns max double/float representation.
218 static double AsDoubleSafely(double value); 220 static double AsDoubleSafely(double value);
219 static float AsFloatSafely(float value); 221 static float AsFloatSafely(float value);
220 }; 222 };
221 223
222 } // namespace cc 224 } // namespace cc
223 225
224 #endif // CC_BASE_MATH_UTIL_H_ 226 #endif // CC_BASE_MATH_UTIL_H_
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | cc/base/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698