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

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

Issue 2551263002: Don't add duplicate points when clipping (Closed)
Patch Set: Readability and review changes Created 4 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 | « no previous file | cc/base/math_util.cc » ('j') | cc/base/math_util.cc » ('J')
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 <memory> 10 #include <memory>
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 ScopedSubnormalFloatDisabler(); 328 ScopedSubnormalFloatDisabler();
329 ~ScopedSubnormalFloatDisabler(); 329 ~ScopedSubnormalFloatDisabler();
330 330
331 private: 331 private:
332 #ifdef __SSE__ 332 #ifdef __SSE__
333 unsigned int orig_state_; 333 unsigned int orig_state_;
334 #endif 334 #endif
335 DISALLOW_COPY_AND_ASSIGN(ScopedSubnormalFloatDisabler); 335 DISALLOW_COPY_AND_ASSIGN(ScopedSubnormalFloatDisabler);
336 }; 336 };
337 337
338 bool IsNearlyTheSameForUnitTesting(const float left, const float right);
339 bool IsNearlyTheSameForUnitTesting(const gfx::PointF& l, const gfx::PointF& r);
340 bool IsNearlyTheSameForUnitTesting(const gfx::Point3F& l,
341 const gfx::Point3F& r);
338 } // namespace cc 342 } // namespace cc
339 343
340 #endif // CC_BASE_MATH_UTIL_H_ 344 #endif // CC_BASE_MATH_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | cc/base/math_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698