Revert "Make SkSurface::imageInfo() const, without creating SkCanvas."
This reverts commit 0ec150005ce2e3478ef3103a8e377cd923f42223.
Reason for revert: The pure virtual is breaking Android's DeferTestCanvas.
Original change's description:
> 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>
Bug: b/238756873
Change-Id: I59315dcd3922a62c4f8ed943ca024502616ee2dd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/599337
Reviewed-by: Robert Phillips <robertphillips@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Auto-Submit: Jim Van Verth <jvanverth@google.com>
7 files changed