Make GrSurfaceContext take GrColorInfo rather than its components.
Bug: skia:11019
Change-Id: I0446e3565c892cddaaeb13d9a8379e144c0ea8ea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341419
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/tools/gpu/ProxyUtils.cpp b/tools/gpu/ProxyUtils.cpp
index 182aa24..9a21cb8 100644
--- a/tools/gpu/ProxyUtils.cpp
+++ b/tools/gpu/ProxyUtils.cpp
@@ -48,8 +48,7 @@
return {};
}
GrSurfaceProxyView view(proxy, origin, swizzle);
- auto sContext = GrSurfaceContext::Make(dContext, std::move(view), imageInfo.colorType(),
- imageInfo.alphaType(), imageInfo.refColorSpace());
+ auto sContext = GrSurfaceContext::Make(dContext, std::move(view), imageInfo.colorInfo());
if (!sContext) {
return {};
}