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

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

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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
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 #include "cc/base/math_util.h" 5 #include "cc/base/math_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "ui/gfx/quad_f.h" 12 #include "ui/gfx/geometry/quad_f.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/rect_conversions.h" 14 #include "ui/gfx/rect_conversions.h"
15 #include "ui/gfx/rect_f.h" 15 #include "ui/gfx/rect_f.h"
16 #include "ui/gfx/transform.h" 16 #include "ui/gfx/transform.h"
17 #include "ui/gfx/vector2d_f.h" 17 #include "ui/gfx/vector2d_f.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 const double MathUtil::kPiDouble = 3.14159265358979323846; 21 const double MathUtil::kPiDouble = 3.14159265358979323846;
22 const float MathUtil::kPiFloat = 3.14159265358979323846f; 22 const float MathUtil::kPiFloat = 3.14159265358979323846f;
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 return scoped_ptr<base::Value>(new base::FundamentalValue( 653 return scoped_ptr<base::Value>(new base::FundamentalValue(
654 std::min(value, std::numeric_limits<double>::max()))); 654 std::min(value, std::numeric_limits<double>::max())));
655 } 655 }
656 656
657 scoped_ptr<base::Value> MathUtil::AsValueSafely(float value) { 657 scoped_ptr<base::Value> MathUtil::AsValueSafely(float value) {
658 return scoped_ptr<base::Value>(new base::FundamentalValue( 658 return scoped_ptr<base::Value>(new base::FundamentalValue(
659 std::min(value, std::numeric_limits<float>::max()))); 659 std::min(value, std::numeric_limits<float>::max())));
660 } 660 }
661 661
662 } // namespace cc 662 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698