OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 | 7 |
8 #include "ui/gfx/transform.h" | 8 #include "ui/gfx/transform.h" |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
10 #include <cmath> | 12 #include <cmath> |
| 13 #include <limits> |
11 #include <ostream> | 14 #include <ostream> |
12 #include <limits> | |
13 | 15 |
14 #include "base/basictypes.h" | |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/gfx/geometry/box_f.h" | 19 #include "ui/gfx/geometry/box_f.h" |
18 #include "ui/gfx/geometry/point.h" | 20 #include "ui/gfx/geometry/point.h" |
19 #include "ui/gfx/geometry/point3_f.h" | 21 #include "ui/gfx/geometry/point3_f.h" |
20 #include "ui/gfx/geometry/quad_f.h" | 22 #include "ui/gfx/geometry/quad_f.h" |
21 #include "ui/gfx/geometry/vector3d_f.h" | 23 #include "ui/gfx/geometry/vector3d_f.h" |
22 #include "ui/gfx/transform_util.h" | 24 #include "ui/gfx/transform_util.h" |
23 | 25 |
24 namespace gfx { | 26 namespace gfx { |
25 | 27 |
(...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2710 EXPECT_FALSE(backface_invisible.IsBackFaceVisible()); | 2712 EXPECT_FALSE(backface_invisible.IsBackFaceVisible()); |
2711 | 2713 |
2712 // A noise that is more than the tolerance should change the result. | 2714 // A noise that is more than the tolerance should change the result. |
2713 backface_invisible.matrix().set(0, 3, 1.f + (2 * noise)); | 2715 backface_invisible.matrix().set(0, 3, 1.f + (2 * noise)); |
2714 EXPECT_TRUE(backface_invisible.IsBackFaceVisible()); | 2716 EXPECT_TRUE(backface_invisible.IsBackFaceVisible()); |
2715 } | 2717 } |
2716 | 2718 |
2717 } // namespace | 2719 } // namespace |
2718 | 2720 |
2719 } // namespace gfx | 2721 } // namespace gfx |
OLD | NEW |