Add SkColorSpace to SaveLayerRec

This change enables the use case in Chromium to draw an (opaque) update
to a SkCanvas in a different color space than the canvas itself. This
lets us avoid allocating a full sized image just to store the color
conversion pass.

Bug: b/327017909
Change-Id: I955f51f66c10a6526a2fb9eb2e7e3b7682c2c4fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/817338
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
6 files changed