Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 6cec1da86bdc8f5da6ddeeeb12964c4cc044d1bd..176d5da59b57cebcfd7441f56e43ea7a450be109 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -356,7 +356,7 @@ bool GrContext::writeSurfacePixels(GrSurface* surface, |
} |
GrPaint paint; |
paint.addColorFragmentProcessor(std::move(fp)); |
- paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |
+ paint.setPorterDuffXPFactory(SkBlendMode::kSrc); |
paint.setAllowSRGBInputs(true); |
SkRect rect = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)); |
drawContext->drawRect(GrNoClip(), paint, matrix, rect, nullptr); |
@@ -471,7 +471,7 @@ bool GrContext::readSurfacePixels(GrSurface* src, |
if (fp) { |
GrPaint paint; |
paint.addColorFragmentProcessor(std::move(fp)); |
- paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |
+ paint.setPorterDuffXPFactory(SkBlendMode::kSrc); |
paint.setAllowSRGBInputs(true); |
SkRect rect = SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)); |
tempDC->drawRect(GrNoClip(), paint, SkMatrix::I(), rect, nullptr); |