| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index a9c60897285519662c6b8eb02dadba7def62ee72..970f75c7b8fcfd647aba9a13508137cc06e3ba7b 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -244,7 +244,7 @@ void GrContext::flush(int flagsBitfield) {
|
| 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 (!GrPixelConfig2ColorAndProfileType(srcConfig, &srcPI.fColorType, nullptr)) {
|
| + if (!GrPixelConfigToColorAndColorSpace(srcConfig, &srcPI.fColorType, nullptr)) {
|
| return false;
|
| }
|
| srcPI.fAlphaType = kUnpremul_SkAlphaType;
|
| @@ -511,7 +511,7 @@ bool GrContext::readSurfacePixels(GrSurface* src,
|
| // Perform umpremul conversion if we weren't able to perform it as a draw.
|
| if (unpremul) {
|
| SkDstPixelInfo dstPI;
|
| - if (!GrPixelConfig2ColorAndProfileType(dstConfig, &dstPI.fColorType, nullptr)) {
|
| + if (!GrPixelConfigToColorAndColorSpace(dstConfig, &dstPI.fColorType, nullptr)) {
|
| return false;
|
| }
|
| dstPI.fAlphaType = kUnpremul_SkAlphaType;
|
|
|