skia2/src
John Stiles 353e2c65c9 Prevent comma operator constant-folding or constant-expression-usage.
OpenGL docs specifically insist that the sequence (comma) operator
should not be treated as a constant-expression so that attempts to
declare multidimensional arrays with a comma will fail:
http://screen/vJEpAe9yNmbzZTm

(See "12.43 Sequence operator and constant expressions" in the OpenGL
ES3 documentation or read skia:13311 for details.)

In practice, we don't get much benefit from optimizing away unused
comma-expressions; it improves some synthetic tests, but realistically
this will not help Skia in any real-world scenario. The constant folder
no longer attempts this optimization, and comma-expressions are now
rejected in a constant-expression context.

Change-Id: Ic5dea6ff90e36614b548c1ce89a444e81da944ae
Bug: skia:13311
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/539565
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-05-11 22:52:24 +00:00
..
android [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
c [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
codec [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
core Make the SkGlyphRunPainter clearly GPU only 2022-05-11 20:29:38 +00:00
effects [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
fonts [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
gpu Simplify CalcNumRadialSegmentsPerRadian signature 2022-05-11 17:44:05 +00:00
image SkImage_Raster::onMakeColorTypeAndColorSpace checks for alloc failure 2022-05-09 17:00:19 +00:00
images [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
lazy [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
opts [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
pathops [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
pdf Rename SkCustomMesh to SkMesh 2022-05-09 13:36:21 +00:00
ports [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
sfnt [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
shaders [graphite] Add sweep gradient shader 2022-05-10 18:32:54 +00:00
sksl Prevent comma operator constant-folding or constant-expression-usage. 2022-05-11 22:52:24 +00:00
svg Rename SkCustomMesh to SkMesh 2022-05-09 13:36:21 +00:00
text/gpu Move BulkUseUpdater to AtlasTypes. 2022-05-05 19:21:17 +00:00
utils [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
xml [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
xps Rename SkCustomMesh to SkMesh 2022-05-09 13:36:21 +00:00