Remove unnessary check to skip drawing.
authoregdaniel <egdaniel@google.com>
Tue, 25 Nov 2014 18:08:33 +0000 (10:08 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 25 Nov 2014 18:08:33 +0000 (10:08 -0800)
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

src/gpu/gl/GrGpuGL_program.cpp

index 176b7cd..e2c59b9 100644 (file)
@@ -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!");