Make createOptDrawState return NULL if we would end up not drawing
authoregdaniel <egdaniel@google.com>
Tue, 7 Oct 2014 13:45:44 +0000 (06:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 13:45:44 +0000 (06:45 -0700)
commitb109ac22b4ec3ab3478f5304c96564a0e9df6170
treeab4863db8b3307133d48bbffa707b9546061ebcc
parentd3ce6b44e582c1a4c73a90b4314a387db8624ca2
Make createOptDrawState return NULL if we would end up not drawing

BUG=skia:

Review URL: https://codereview.chromium.org/630063002
src/gpu/GrDrawState.cpp
src/gpu/GrDrawState.h
src/gpu/GrOptDrawState.cpp
src/gpu/GrOptDrawState.h
src/gpu/gl/GrGpuGL_program.cpp
tests/GLProgramsTest.cpp