OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // We would like to use M_PI on windows too. | 5 // We would like to use M_PI on windows too. |
6 #ifdef _WIN32 | 6 #ifdef _WIN32 |
7 #define _USE_MATH_DEFINES | 7 #define _USE_MATH_DEFINES |
8 #endif | 8 #endif |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
10 #include <limits> | 12 #include <limits> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
13 #include "cc/output/bsp_compare_result.h" | 15 #include "cc/output/bsp_compare_result.h" |
14 #include "cc/quads/draw_polygon.h" | 16 #include "cc/quads/draw_polygon.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
17 | 19 |
18 namespace cc { | 20 namespace cc { |
19 | 21 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 351 |
350 // Note: We use EXPECT_FLOAT_WITHIN_EPSILON instead of EXPECT_FLOAT_EQUAL here | 352 // Note: We use EXPECT_FLOAT_WITHIN_EPSILON instead of EXPECT_FLOAT_EQUAL here |
351 // because some architectures (e.g., Arm64) employ a fused multiply-add | 353 // because some architectures (e.g., Arm64) employ a fused multiply-add |
352 // instruction which causes rounding asymmetry and reduces precision. | 354 // instruction which causes rounding asymmetry and reduces precision. |
353 // http://crbug.com/401117. | 355 // http://crbug.com/401117. |
354 EXPECT_NORMAL(polygon_a, 0.0f, 0.0f, -1.0f); | 356 EXPECT_NORMAL(polygon_a, 0.0f, 0.0f, -1.0f); |
355 } | 357 } |
356 | 358 |
357 } // namespace | 359 } // namespace |
358 } // namespace cc | 360 } // namespace cc |
OLD | NEW |