Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 970f75c7b8fcfd647aba9a13508137cc06e3ba7b..a9c60897285519662c6b8eb02dadba7def62ee72 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -244,7 +244,7 @@ |
bool sw_convert_to_premul(GrPixelConfig srcConfig, int width, int height, size_t inRowBytes, |
const void* inPixels, size_t outRowBytes, void* outPixels) { |
SkSrcPixelInfo srcPI; |
- if (!GrPixelConfigToColorAndColorSpace(srcConfig, &srcPI.fColorType, nullptr)) { |
+ if (!GrPixelConfig2ColorAndProfileType(srcConfig, &srcPI.fColorType, nullptr)) { |
return false; |
} |
srcPI.fAlphaType = kUnpremul_SkAlphaType; |
@@ -511,7 +511,7 @@ |
// Perform umpremul conversion if we weren't able to perform it as a draw. |
if (unpremul) { |
SkDstPixelInfo dstPI; |
- if (!GrPixelConfigToColorAndColorSpace(dstConfig, &dstPI.fColorType, nullptr)) { |
+ if (!GrPixelConfig2ColorAndProfileType(dstConfig, &dstPI.fColorType, nullptr)) { |
return false; |
} |
dstPI.fAlphaType = kUnpremul_SkAlphaType; |