Add refactors/deprecations to support Ganesh modules
Having a function with many possible implementations chosen
at compile time (e.g. GrGLMakeNativeInterface) is not compatible
with modular Bazel build rules, so I've deprecated it. Clients
will need to directly instantiate what they need.
Additionally, this removes some PNG encoding from GrAtlasManager
(and other test-only functions) and putting those in a tools
helper class, breaking a debug-only dependency. There are a few
other small cleanups too.
A follow-on CL will add the Bazel rules for the ganesh gl
module.
No-Try: true
Change-Id: Ibd1309d04aa08c77d68625af6bc1d0d237d4aa22
Bug: b/293490566
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/788798
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
25 files changed