diff options
author | joshualitt <joshualitt@chromium.org> | 2014-11-20 07:28:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-20 07:28:52 -0800 |
commit | 9176e2c159089458b1e2226a94fab1af0fba32ac (patch) | |
tree | 340be15e0bed56396c8100e65ce6031fd09ec90e /src/gpu/gl/GrGLProgramDesc.cpp | |
parent | ace7f4276997235abe559b70620d9f89737d2518 (diff) |
dstCopy on optdrawstate
BUG=skia:
Review URL: https://codereview.chromium.org/735363003
Diffstat (limited to 'src/gpu/gl/GrGLProgramDesc.cpp')
-rw-r--r-- | src/gpu/gl/GrGLProgramDesc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp index f8510ff30b..954a482f3a 100644 --- a/src/gpu/gl/GrGLProgramDesc.cpp +++ b/src/gpu/gl/GrGLProgramDesc.cpp @@ -204,7 +204,6 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, const GrProgramDesc::DescInfo& descInfo, GrGpu::DrawType drawType, GrGpuGL* gpu, - const GrDeviceCoordTexture* dstCopy, GrProgramDesc* desc) { bool inputColorIsUsed = descInfo.fInputColorIsUsed; bool inputCoverageIsUsed = descInfo.fInputCoverageIsUsed; @@ -294,6 +293,7 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, } if (descInfo.fReadsDst) { + const GrDeviceCoordTexture* dstCopy = optState.getDstCopy(); SkASSERT(dstCopy || gpu->caps()->dstReadInShaderSupport()); const GrTexture* dstCopyTexture = NULL; if (dstCopy) { |