@@ -2020,8 +2020,7 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
2020
2020
std::fill_n (yM, 15 , 0 .f );
2021
2021
std::copy_n (baseM + 0 , 5 , yM + 15 );
2022
2022
GrPaint yPaint;
2023
- yPaint.addColorFragmentProcessor (
2024
- GrTextureEffect::Make (srcProxy, this ->colorInfo ().alphaType (), texMatrix));
2023
+ yPaint.addColorTextureProcessor (srcProxy, this ->colorInfo ().alphaType (), texMatrix);
2025
2024
auto yFP = GrColorMatrixFragmentProcessor::Make (yM, false , true , false );
2026
2025
yPaint.addColorFragmentProcessor (std::move (yFP));
2027
2026
yPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2040,8 +2039,8 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
2040
2039
std::fill_n (uM, 15 , 0 .f );
2041
2040
std::copy_n (baseM + 5 , 5 , uM + 15 );
2042
2041
GrPaint uPaint;
2043
- uPaint.addColorFragmentProcessor ( GrTextureEffect::Make (
2044
- srcProxy, this -> colorInfo (). alphaType (), texMatrix, GrSamplerState::Filter::kBilerp ) );
2042
+ uPaint.addColorTextureProcessor (srcProxy, this -> colorInfo (). alphaType (), texMatrix,
2043
+ GrSamplerState::Filter::kBilerp );
2045
2044
auto uFP = GrColorMatrixFragmentProcessor::Make (uM, false , true , false );
2046
2045
uPaint.addColorFragmentProcessor (std::move (uFP));
2047
2046
uPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2059,8 +2058,8 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
2059
2058
std::fill_n (vM, 15 , 0 .f );
2060
2059
std::copy_n (baseM + 10 , 5 , vM + 15 );
2061
2060
GrPaint vPaint;
2062
- vPaint.addColorFragmentProcessor ( GrTextureEffect::Make (
2063
- srcProxy, this -> colorInfo (). alphaType (), texMatrix, GrSamplerState::Filter::kBilerp ) );
2061
+ vPaint.addColorTextureProcessor (srcProxy, this -> colorInfo (). alphaType (), texMatrix,
2062
+ GrSamplerState::Filter::kBilerp );
2064
2063
auto vFP = GrColorMatrixFragmentProcessor::Make (vM, false , true , false );
2065
2064
vPaint.addColorFragmentProcessor (std::move (vFP));
2066
2065
vPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2580,7 +2579,7 @@ bool GrRenderTargetContext::blitTexture(GrTextureProxy* src, const SkIRect& srcR
2580
2579
2581
2580
GrPaint paint;
2582
2581
paint.setPorterDuffXPFactory (SkBlendMode::kSrc );
2583
- auto fp = GrTextureEffect::Make (sk_ref_sp (src), kUnknown_SkAlphaType );
2582
+ auto fp = GrTextureEffect::Make (sk_ref_sp (src), kUnknown_SkAlphaType , SkMatrix::I () );
2584
2583
if (!fp) {
2585
2584
return false ;
2586
2585
}
0 commit comments