| Index: gm/yuvtorgbeffect.cpp
|
| diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp
|
| index 18d799c3f77f8693d6741232de3d7322278a709f..bf4094cf4ff4d6a01a738ca3fbc8373cc51c4ae3 100644
|
| --- a/gm/yuvtorgbeffect.cpp
|
| +++ b/gm/yuvtorgbeffect.cpp
|
| @@ -20,7 +20,7 @@
|
| #include "SkGradientShader.h"
|
| #include "batches/GrDrawBatch.h"
|
| #include "batches/GrRectBatchFactory.h"
|
| -#include "effects/GrYUVtoRGBEffect.h"
|
| +#include "effects/GrYUVEffect.h"
|
|
|
| #define YSIZE 8
|
| #define USIZE 4
|
| @@ -118,12 +118,12 @@ protected:
|
| GrPipelineBuilder pipelineBuilder;
|
| pipelineBuilder.setXPFactory(
|
| GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref();
|
| - SkAutoTUnref<GrFragmentProcessor> fp(
|
| - GrYUVtoRGBEffect::Create(texture[indices[i][0]],
|
| - texture[indices[i][1]],
|
| - texture[indices[i][2]],
|
| - sizes,
|
| - static_cast<SkYUVColorSpace>(space)));
|
| + SkAutoTUnref<const GrFragmentProcessor> fp(
|
| + GrYUVEffect::CreateYUVToRGB(texture[indices[i][0]],
|
| + texture[indices[i][1]],
|
| + texture[indices[i][2]],
|
| + sizes,
|
| + static_cast<SkYUVColorSpace>(space)));
|
| if (fp) {
|
| SkMatrix viewMatrix;
|
| viewMatrix.setTranslate(x, y);
|
|
|