Make SkSurface::imageInfo() const, without creating SkCanvas.
I wanted to call imageInfo() from a const SkSurface but couldn't without
a possibly unsafe cast because it creates an SkCanvas. There's no
particular reason it has to as all the information is there.
Bug: b/238756873
Change-Id: I4a53d6dd0ad8b190e406383f4d028a089114224e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/597556
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
7 files changed