Revert "[graphite] AsyncReadPixels clean up."
This reverts commit fd85c78c3903db1d6505a3a810019972d1339b47.
Reason for revert: Previous CL is breaking Android.
Original change's description:
> [graphite] AsyncReadPixels clean up.
>
> * Removed unnecessary const_cast
> * Surfaces can only be created with kPremul alphaType.
> * Now surfaces with invalid alphaType can't be created, removed
> unnecessary check for src's alphaType in asyncReadPixels tests.
>
> Bug: b/238756873
> Change-Id: Iddece4df686ccc38bca7e6303ab55025a0fd8f16
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/599198
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Bug: b/238756873
Change-Id: I2c61287cc27065a0d81ee41280e7d84837daa492
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/599336
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
3 files changed