зеркало из https://github.com/AvaloniaUI/angle.git
Remove ANGLE code comments related to base::clamp
We are recently converting base::clamp to std::clamp, and the original code comments related to base::clamp can be removed. Bug: angleproject:8140, chromium:1231569, chromium:1373621 Change-Id: Iae5f9e816ef1c531d728a35079d6110d1a9dad2f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4469309 Auto-Submit: Ho Cheung <uioptt24@gmail.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Родитель
25d57e4163
Коммит
f8b182b5b8
1
AUTHORS
1
AUTHORS
|
@ -78,3 +78,4 @@ Stephan Hartmann
|
|||
SeongHwan Park
|
||||
Xiaopeng Li
|
||||
Akihiko Odaki
|
||||
Ho Cheung
|
||||
|
|
|
@ -11,12 +11,8 @@
|
|||
namespace base
|
||||
{
|
||||
|
||||
// DO NOT USE THIS FUNCTION. IT IS DUE TO BE REMOVED. https://crbug.com/1231569
|
||||
// Please use base::clamp() from base/cxx17_backports.h instead.
|
||||
//
|
||||
// This function, unlike base::clamp(), does not check if `min` is greater than
|
||||
// `max`, and returns a bogus answer if it is. Please migrate all code that
|
||||
// calls this function to use base::clamp() instead.
|
||||
// `max`, and returns a bogus answer if it is.
|
||||
//
|
||||
// If, for some reason the broken behavior is required, please re-create this
|
||||
// min/max nesting inline in the host code and explain with a comment why it
|
||||
|
|
Загрузка…
Ссылка в новой задаче