skia2/src
John Stiles 5676c57220 Optimize away self-comparison in the constant folder.
Expressions like `value == value` or `color.a != color.a` can be
replaced by `true` or `false` on sight. The GLSL spec makes it clear
that checking for NaN is optional:

4.7.1 Range and Precision
"... NaNs are not required to be generated. Support for signaling NaNs
is not required and exceptions are never raised. Operations and built-in
functions that operate on a NaN are not required to return a NaN as the
result."

Change-Id: I2ad9f2dc505b638ea2904bef41b7a79a2b329551
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381262
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-03-08 23:38:29 +00:00
..
android More hiding of legacy drawImage calls 2021-01-22 13:53:42 +00:00
c Migrate to drawImage w/ sampling 2021-01-22 22:38:02 +00:00
codec get image from skcodec 2021-01-25 21:50:16 +00:00
core Pre-cache matrix type in SkMatrixImageFilter 2021-03-08 16:29:09 +00:00
effects make runtime effect caching opt-in and private 2021-03-04 18:24:30 +00:00
fonts Make SkFontMgr::onMakeFromStreamArgs pure virtual. 2020-06-28 01:16:34 +00:00
gpu Performance experiment: disable control-flow analysis. 2021-03-08 19:41:19 +00:00
image Reland "Have GrVkRenderTarget only use GrVkAttachments and not derive from GrVkImage." 2021-03-06 18:57:11 +00:00
images Bitmap.asImage() 2020-12-23 15:54:57 +00:00
lazy Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
opts remove SkRP TODOs 2021-02-09 02:44:14 +00:00
pathops guard pathops debug feature better 2021-01-29 21:46:48 +00:00
pdf Migrate to drawImage w/ sampling 2021-01-22 22:38:02 +00:00
ports Remove deprecated tile filter header 2021-02-25 19:09:49 +00:00
sfnt Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
shaders SkPictureShader::asFragmentProcessor should recreate proxy for resource. 2021-03-08 15:22:05 +00:00
sksl Optimize away self-comparison in the constant folder. 2021-03-08 23:38:29 +00:00
svg Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
utils remove unused Mode from GrBlurredEdgeFP 2021-02-25 22:28:30 +00:00
xml Less string copies of text in XML parsing. 2021-02-05 15:36:43 +00:00
xps Fix type in Issue 11102: Add support for UWP compilation target 2021-02-13 23:38:48 +00:00