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

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

Issue 869043008: Reland of Move tracing namespace from base::debug to base::trace_event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix suppressions Created 5 years, 10 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
« no previous file with comments | « build/sanitizers/tsan_suppressions.cc ('k') | cc/base/region.h » ('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>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "cc/base/cc_export.h" 14 #include "cc/base/cc_export.h"
15 #include "ui/gfx/geometry/box_f.h" 15 #include "ui/gfx/geometry/box_f.h"
16 #include "ui/gfx/geometry/point3_f.h" 16 #include "ui/gfx/geometry/point3_f.h"
17 #include "ui/gfx/geometry/point_f.h" 17 #include "ui/gfx/geometry/point_f.h"
18 #include "ui/gfx/geometry/scroll_offset.h" 18 #include "ui/gfx/geometry/scroll_offset.h"
19 #include "ui/gfx/geometry/size.h" 19 #include "ui/gfx/geometry/size.h"
20 #include "ui/gfx/transform.h" 20 #include "ui/gfx/transform.h"
21 21
22 namespace base { 22 namespace base {
23 class Value; 23 class Value;
24 namespace debug { 24 namespace trace_event {
25 class TracedValue; 25 class TracedValue;
26 } 26 }
27
28 // TODO(ssid): remove these aliases after the tracing clients are moved to the
29 // new trace_event namespace. See crbug.com/451032. ETA: March 2015.
30 namespace debug {
31 using ::base::trace_event::TracedValue;
27 } 32 }
33 } // namespace base
28 34
29 namespace gfx { 35 namespace gfx {
30 class QuadF; 36 class QuadF;
31 class Rect; 37 class Rect;
32 class RectF; 38 class RectF;
33 class Transform; 39 class Transform;
34 class Vector2dF; 40 class Vector2dF;
35 class Vector2d; 41 class Vector2d;
36 } 42 }
37 43
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 244
239 // Returns a base::Value representation of the floating point value. 245 // Returns a base::Value representation of the floating point value.
240 // If the value is inf, returns max double/float representation. 246 // If the value is inf, returns max double/float representation.
241 static double AsDoubleSafely(double value); 247 static double AsDoubleSafely(double value);
242 static float AsFloatSafely(float value); 248 static float AsFloatSafely(float value);
243 }; 249 };
244 250
245 } // namespace cc 251 } // namespace cc
246 252
247 #endif // CC_BASE_MATH_UTIL_H_ 253 #endif // CC_BASE_MATH_UTIL_H_
OLDNEW
« no previous file with comments | « build/sanitizers/tsan_suppressions.cc ('k') | cc/base/region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698