Chromium Code Reviews| Index: src/gpu/GrContext.cpp |
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
| index 322ea87dcb88017904d13777aebbeb6d4535230a..91af9a16b8106d72b0a56face453d0a12aae21a2 100755 |
| --- a/src/gpu/GrContext.cpp |
| +++ b/src/gpu/GrContext.cpp |
| @@ -1738,7 +1738,8 @@ GrDrawTarget* GrContext::prepareToDraw(const GrPaint* paint, |
| AutoCheckFlush* acf) { |
| // All users of this draw state should be freeing up all effects when they're done. |
| // Otherwise effects that own resources may keep those resources alive indefinitely. |
| - SkASSERT(0 == fDrawState->numColorStages() && 0 == fDrawState->numCoverageStages()); |
| + SkASSERT(0 == fDrawState->numColorStages() && 0 == fDrawState->numCoverageStages() && |
|
robertphillips
2014/08/29 15:04:53
Usually we do this as "NULL == fDrawState...". At
joshua.litt
2014/09/02 16:06:21
Acknowledged.
|
| + !fDrawState->getGeometryProcessor()); |
| if (NULL == fGpu) { |
| return NULL; |