Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: src/gpu/GrDefaultPathRenderer.cpp

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDefaultPathRenderer.cpp
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp
index dd6ae9d02514f80e6c2708d0053e3972be8584b4..9d08997fd4dc4b8f4375ab33f5fddd6c9cd7b96c 100644
--- a/src/gpu/GrDefaultPathRenderer.cpp
+++ b/src/gpu/GrDefaultPathRenderer.cpp
@@ -240,7 +240,7 @@ bool GrDefaultPathRenderer::createGeom(const SkPath& path,
uint16_t subpathIdxStart = 0;
SkPoint* base = reinterpret_cast<SkPoint*>(arg->vertices());
- SkASSERT(NULL != base);
+ SkASSERT(base);
SkPoint* vert = base;
SkPoint pts[4];
@@ -361,7 +361,7 @@ bool GrDefaultPathRenderer::internalDrawPath(const SkPath& path,
return false;
}
- SkASSERT(NULL != target);
+ SkASSERT(target);
GrDrawTarget::AutoStateRestore asr(target, GrDrawTarget::kPreserve_ASRInit);
GrDrawState* drawState = target->drawState();
bool colorWritesWereDisabled = drawState->isColorWriteDisabled();
@@ -465,7 +465,7 @@ bool GrDefaultPathRenderer::internalDrawPath(const SkPath& path,
for (int p = 0; p < passCount; ++p) {
drawState->setDrawFace(drawFace[p]);
- if (NULL != passes[p]) {
+ if (passes[p]) {
*drawState->stencil() = *passes[p];
}
@@ -476,7 +476,7 @@ bool GrDefaultPathRenderer::internalDrawPath(const SkPath& path,
SkRect bounds;
GrDrawState::AutoViewMatrixRestore avmr;
if (reverse) {
- SkASSERT(NULL != drawState->getRenderTarget());
+ SkASSERT(drawState->getRenderTarget());
// draw over the dev bounds (which will be the whole dst surface for inv fill).
bounds = devBounds;
SkMatrix vmi;
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDistanceFieldTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698