@@ -2020,8 +2020,7 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
20202020 std::fill_n (yM, 15 , 0 .f );
20212021 std::copy_n (baseM + 0 , 5 , yM + 15 );
20222022 GrPaint yPaint;
2023- yPaint.addColorFragmentProcessor (
2024- GrTextureEffect::Make (srcProxy, this ->colorInfo ().alphaType (), texMatrix));
2023+ yPaint.addColorTextureProcessor (srcProxy, this ->colorInfo ().alphaType (), texMatrix);
20252024 auto yFP = GrColorMatrixFragmentProcessor::Make (yM, false , true , false );
20262025 yPaint.addColorFragmentProcessor (std::move (yFP));
20272026 yPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2040,8 +2039,8 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
20402039 std::fill_n (uM, 15 , 0 .f );
20412040 std::copy_n (baseM + 5 , 5 , uM + 15 );
20422041 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 );
20452044 auto uFP = GrColorMatrixFragmentProcessor::Make (uM, false , true , false );
20462045 uPaint.addColorFragmentProcessor (std::move (uFP));
20472046 uPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2059,8 +2058,8 @@ void GrRenderTargetContext::asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvC
20592058 std::fill_n (vM, 15 , 0 .f );
20602059 std::copy_n (baseM + 10 , 5 , vM + 15 );
20612060 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 );
20642063 auto vFP = GrColorMatrixFragmentProcessor::Make (vM, false , true , false );
20652064 vPaint.addColorFragmentProcessor (std::move (vFP));
20662065 vPaint.setPorterDuffXPFactory (SkBlendMode::kSrc );
@@ -2580,7 +2579,7 @@ bool GrRenderTargetContext::blitTexture(GrTextureProxy* src, const SkIRect& srcR
25802579
25812580 GrPaint paint;
25822581 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 () );
25842583 if (!fp) {
25852584 return false ;
25862585 }
0 commit comments