Index: src/gpu/effects/GrYUVtoRGBEffect.cpp |
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
index 60c39bf4a7578c4ea3a787e161a281a1d1ee60b3..92acab3725da4ac8763d7b664630c0fbc6afb614 100644 |
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp |
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
@@ -18,7 +18,7 @@ namespace { |
class YUVtoRGBEffect : public GrFragmentProcessor { |
public: |
static GrFragmentProcessor* Create(GrTexture* yTexture, GrTexture* uTexture, |
- GrTexture* vTexture, SkISize sizes[3], |
+ GrTexture* vTexture, const SkISize sizes[3], |
SkYUVColorSpace colorSpace) { |
SkScalar w[3], h[3]; |
w[0] = SkIntToScalar(sizes[0].fWidth) / SkIntToScalar(yTexture->width()); |
@@ -111,7 +111,7 @@ public: |
private: |
YUVtoRGBEffect(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture, |
- SkMatrix yuvMatrix[3], GrTextureParams::FilterMode uvFilterMode, |
+ const SkMatrix yuvMatrix[3], GrTextureParams::FilterMode uvFilterMode, |
SkYUVColorSpace colorSpace) |
: fYTransform(kLocal_GrCoordSet, yuvMatrix[0], yTexture, GrTextureParams::kNone_FilterMode) |
, fYAccess(yTexture) |
@@ -167,7 +167,7 @@ const GrGLfloat YUVtoRGBEffect::GLProcessor::kRec601ConversionMatrix[16] = { |
GrFragmentProcessor* |
GrYUVtoRGBEffect::Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture, |
- SkISize sizes[3], SkYUVColorSpace colorSpace) { |
+ const SkISize sizes[3], SkYUVColorSpace colorSpace) { |
SkASSERT(yTexture && uTexture && vTexture && sizes); |
return YUVtoRGBEffect::Create(yTexture, uTexture, vTexture, sizes, colorSpace); |
} |