diff options
author | bsalomon <bsalomon@google.com> | 2015-05-29 11:37:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-29 11:37:25 -0700 |
commit | 993a4216a6014b9de8f4d8120360c94550dc6761 (patch) | |
tree | 75e4863a6fa83d35c519a3103a9d2c94520dbd1e /src/gpu/effects/GrYUVtoRGBEffect.cpp | |
parent | 4061b1262e931be19e1176cbd0e93b8c268eb131 (diff) |
SkImage::NewFromYUVTexturesCopy
Review URL: https://codereview.chromium.org/1149553002
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrYUVtoRGBEffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp index 60c39bf4a7..92acab3725 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); } |