Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 886945c71036052812e3e0e003ad931b1dfd672d..47fa394788645434ce133e5ac0df8e54c9682330 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -118,12 +118,11 @@ bool GrSurface::readPixels(int left, int top, int width, int height, |
SkImageInfo GrSurface::info(SkAlphaType alphaType) const { |
SkColorType colorType; |
- SkColorProfileType profileType; |
- if (!GrPixelConfig2ColorAndProfileType(this->config(), &colorType, &profileType)) { |
+ sk_sp<SkColorSpace> colorSpace; |
+ if (!GrPixelConfigToColorAndColorSpace(this->config(), &colorType, &colorSpace)) { |
sk_throw(); |
} |
- return SkImageInfo::Make(this->width(), this->height(), colorType, alphaType, |
- profileType); |
+ return SkImageInfo::Make(this->width(), this->height(), colorType, alphaType, colorSpace); |
} |
// TODO: This should probably be a non-member helper function. It might only be needed in |