diff options
author | egdaniel <egdaniel@google.com> | 2014-11-25 10:08:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-25 10:08:33 -0800 |
commit | 74d80eba370557c22cebef6c3be0875c32e1b17b (patch) | |
tree | 8a2d192a8633598cecb3da295661b110eed4a8dd /src | |
parent | 785982ed80ce43653f64640d04dae7eaf5e2f809 (diff) |
Remove unnessary check to skip drawing.
This is now checked during the OptDrawStates creation and thus is no longer needed here.
I have varified that this code path is never hit.
BUG=skia:
Review URL: https://codereview.chromium.org/758973002
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index 176b7cd8d4..e2c59b927f 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -216,12 +216,6 @@ bool GrGpuGL::flushGraphicsState(const GrOptDrawState& optState, DrawType type) GrBlendCoeff srcCoeff = optState.getSrcBlendCoeff(); GrBlendCoeff dstCoeff = optState.getDstBlendCoeff(); - // In these blend coeff's we end up drawing nothing so we can skip draw all together - if (kZero_GrBlendCoeff == srcCoeff && kOne_GrBlendCoeff == dstCoeff && - !optState.getStencil().doesWrite()) { - return false; - } - fCurrentProgram.reset(fProgramCache->getProgram(optState, type)); if (NULL == fCurrentProgram.get()) { SkDEBUGFAIL("Failed to create program!"); |