skia2/include
John Stiles 3dc829746a Eliminate vtable from DSLVar class hierarchy.
The only usage of `virtual` was the `storage()` method. This value is
now stored in a member variable. It is packed next to a bool so it
should be ~zero extra space, versus 8 bytes for a vtable pointer. We
also save cost of a virtual dtor call every time a DSLVar goes away.

Because VariableStorage is not a public type, this required shuffling
some constructors around to live in the cpp instead of the header.

Change-Id: I9fdefc3696d123848fb567029c051b478349cec7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/542139
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-05-19 19:57:19 +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
config [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
core Remove SkSL portions of SkCapabilities when SkSL is not enabled 2022-05-19 19:32:48 +00:00
docs [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
effects Add #version directive to SkSL 2022-05-17 15:42:31 +00:00
encode [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
gpu [graphite] Remove DepthStencilOnly handling 2022-05-19 15:16:37 +00:00
pathops [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
ports [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
private Convert color data to skvx::float4 from Sk4f 2022-05-19 19:45:23 +00:00
sksl Eliminate vtable from DSLVar class hierarchy. 2022-05-19 19:57:19 +00:00
svg [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
third_party [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
utils [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00