Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index a703146c54e9329955420595e9ee24ba8836b05f..56080307768b8f0319dbc016fcfdf51d953d4587 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -428,10 +428,11 @@ static GrTexture* load_yuv_texture(GrContext* ctx, const GrUniqueKey& optionalKe |
GrRenderTarget* renderTarget = result->asRenderTarget(); |
SkASSERT(renderTarget); |
+ GrPaint paint; |
SkAutoTUnref<GrFragmentProcessor> |
- yuvToRgbProcessor(GrYUVtoRGBEffect::Create(yuvTextures[0], yuvTextures[1], yuvTextures[2], |
+ yuvToRgbProcessor(GrYUVtoRGBEffect::Create(paint.getProcessorDataManager(), yuvTextures[0], |
+ yuvTextures[1], yuvTextures[2], |
yuvInfo.fSize, yuvInfo.fColorSpace)); |
- GrPaint paint; |
paint.addColorProcessor(yuvToRgbProcessor); |
SkRect r = SkRect::MakeWH(SkIntToScalar(yuvInfo.fSize[0].fWidth), |
SkIntToScalar(yuvInfo.fSize[0].fHeight)); |