This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
03467a53e6
skia2
/
tests
/
sksl
/
inliner
/
EnumsCanBeInlinedSafely.glsl
8 lines
101 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Implement Type cloning for enums and structs. As far as I know, there shouldn't be a way to introduce a struct or enum other than at global scope; the keywords are not accepted inside a function body. In fact, I wasn't able to find a way to exercise these code paths in practice. But we now have concrete assurance that any possible type can be cloned into a symbol table safely; all Types are either built-in (available everywhere by design) or are clonable. Change-Id: I4b006b6cab995b3e598b683736ab9689828629c9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354664 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-15 20:34:10 +00:00
out vec4 sk_FragColor;
vec4 helper();
void main() {
Revert "Disable control-flow analysis in SkSL. (Performance experiment)" This reverts commit 50b1b2b90d609c235c70692ac9b6e6450a7c3fb5. Reason for revert: ending experiment Original change's description: > Disable control-flow analysis in SkSL. (Performance experiment) > > This CL will be used to test for potential performance regressions (or > improvements?) that we might incur by disabling this optimization pass. > > It will be reverted in ~1 day. > > Change-Id: I775cdb0c95df81fa25ebbd66e4ff01f64c660f68 > Bug: skia:11319 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/378456 > Commit-Queue: John Stiles <johnstiles@google.com> > Reviewed-by: Brian Osman <brianosman@google.com> > Reviewed-by: Ethan Nicholas <ethannicholas@google.com> TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com Change-Id: Ie385a82db237ff5651348d82b9651f8ba09375b9 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379581 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
2021-03-04 15:19:48 +00:00
sk_FragColor = vec4(0.5, 0.5, 0.5, 1.0);
Implement Type cloning for enums and structs. As far as I know, there shouldn't be a way to introduce a struct or enum other than at global scope; the keywords are not accepted inside a function body. In fact, I wasn't able to find a way to exercise these code paths in practice. But we now have concrete assurance that any possible type can be cloned into a symbol table safely; all Types are either built-in (available everywhere by design) or are clonable. Change-Id: I4b006b6cab995b3e598b683736ab9689828629c9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354664 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-15 20:34:10 +00:00
}
Reference in New Issue
Copy Permalink