Index: src/gpu/GrYUVProvider.cpp |
diff --git a/src/gpu/GrYUVProvider.cpp b/src/gpu/GrYUVProvider.cpp |
index 014c30574a422e7f03b04ca2fb1007f55cfe3a17..844849a57567360157fe14b172291a276d4288d1 100644 |
--- a/src/gpu/GrYUVProvider.cpp |
+++ b/src/gpu/GrYUVProvider.cpp |
@@ -8,7 +8,7 @@ |
#include "GrContext.h" |
#include "GrDrawContext.h" |
#include "GrYUVProvider.h" |
-#include "effects/GrYUVtoRGBEffect.h" |
+#include "effects/GrYUVEffect.h" |
#include "SkCachedData.h" |
#include "SkRefCnt.h" |
@@ -121,12 +121,12 @@ GrTexture* GrYUVProvider::refAsTexture(GrContext* ctx, const GrSurfaceDesc& desc |
SkASSERT(renderTarget); |
GrPaint paint; |
- SkAutoTUnref<GrFragmentProcessor> yuvToRgbProcessor( |
- GrYUVtoRGBEffect::Create(yuvTextures[0], |
- yuvTextures[1], |
- yuvTextures[2], |
- yuvInfo.fSize, |
- yuvInfo.fColorSpace)); |
+ SkAutoTUnref<const GrFragmentProcessor> yuvToRgbProcessor( |
+ GrYUVEffect::CreateYUVToRGB(yuvTextures[0], |
+ yuvTextures[1], |
+ yuvTextures[2], |
+ yuvInfo.fSize, |
+ yuvInfo.fColorSpace)); |
paint.addColorFragmentProcessor(yuvToRgbProcessor); |
paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |
const SkRect r = SkRect::MakeIWH(yuvInfo.fSize[0].fWidth, yuvInfo.fSize[0].fHeight); |