Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 1ca305b5a11080ea446db9b006e6424eb8b64e45..678755a58f17c1a4b36b563f9b58aa2275e8c668 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -43,10 +43,12 @@ bool GrSurface::readPixels(int left, int top, int width, int height, |
SkImageInfo GrSurface::info() const { |
SkColorType colorType; |
- if (!GrPixelConfig2ColorType(this->config(), &colorType)) { |
+ SkColorProfileType profileType; |
+ if (!GrPixelConfig2ColorAndProfileType(this->config(), &colorType, &profileType)) { |
sk_throw(); |
} |
- return SkImageInfo::Make(this->width(), this->height(), colorType, kPremul_SkAlphaType); |
+ return SkImageInfo::Make(this->width(), this->height(), colorType, kPremul_SkAlphaType, |
+ profileType); |
} |
// TODO: This should probably be a non-member helper function. It might only be needed in |