Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp |
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
index 4c50e47ab9ae1d3845fb603a4f8d42c639a7cbff..1312d353351d1bf9eaba46395712fac5cd01e052 100644 |
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp |
@@ -13,7 +13,7 @@ |
#include "GrProcOptInfo.h" |
#include "GrTypes.h" |
#include "GrXferProcessor.h" |
-#include "gl/GrGLBlend.h" |
+#include "gl/GrGLSLBlend.h" |
#include "gl/GrGLXferProcessor.h" |
#include "gl/builders/GrGLFragmentShaderBuilder.h" |
#include "gl/builders/GrGLProgramBuilder.h" |
@@ -547,7 +547,7 @@ private: |
const ShaderPDXferProcessor& xp = proc.cast<ShaderPDXferProcessor>(); |
GrGLXPFragmentBuilder* fsBuilder = pb->getFragmentShaderBuilder(); |
- GrGLBlend::AppendPorterDuffBlend(fsBuilder, srcColor, dstColor, outColor, xp.getXfermode()); |
+ GrGLSLBlend::AppendMode(fsBuilder, srcColor, dstColor, outColor, xp.getXfermode()); |
} |
void onSetData(const GrGLProgramDataManager&, const GrXferProcessor&) override {} |
@@ -651,7 +651,7 @@ GrXferProcessor* PDLCDXferProcessor::Create(SkXfermode::Mode xfermode, |
return nullptr; |
} |
- GrColor blendConstant = GrUnPreMulColor(colorPOI.color()); |
+ GrColor blendConstant = GrUnpremulColor(colorPOI.color()); |
uint8_t alpha = GrColorUnpackA(blendConstant); |
blendConstant |= (0xff << GrColor_SHIFT_A); |