commit | dc27e88e848c016d8c29de9c5e35c045fce024ba | [log] [tgz] |
---|---|---|
author | Leandro Lovisolo <lovisolo@google.com> | Thu Aug 03 18:08:18 2023 +0000 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Thu Aug 03 19:23:15 2023 +0000 |
tree | 8a1f37d7b75c6ba4407632afb5396bcfdf90b8f6 | |
parent | 31ee3cb08814975d9a759f20cda142dbab19e823 [diff] |
[bazel] skiagm::GMFactory type alias: Use std::function instead of function pointers. This unlocks the possibility of registering GMs dynamically via lambdas with non-empty capture groups (see follow-up CL: https://skia-review.googlesource.com/c/skia/+/734163). Notes to reviewer: - The main change is in //gm/gm.h. - All other changes are to silence compiler warnings/errors. Bug: b/40045301 Change-Id: If165de4b1ba724e2fbbb95c9787335c8f278f3b4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/728256 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Leandro Lovisolo <lovisolo@google.com>