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

Side by Side Diff: cc/quads/draw_polygon_unittest.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/quads/draw_polygon.cc ('k') | cc/quads/draw_quad.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 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
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
OLDNEW
« no previous file with comments | « cc/quads/draw_polygon.cc ('k') | cc/quads/draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698