Index: src/gpu/GrAARectRenderer.cpp |
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp |
index 9384457a1ed9c94499e9f3b5839ae720481bd1c1..d19e26d76604a9f98bdbb91c492886865f3475c2 100644 |
--- a/src/gpu/GrAARectRenderer.cpp |
+++ b/src/gpu/GrAARectRenderer.cpp |
@@ -315,7 +315,7 @@ GrIndexBuffer* GrAARectRenderer::aaFillRectIndexBuffer(GrGpu* gpu) { |
if (NULL == fAAFillRectIndexBuffer) { |
fAAFillRectIndexBuffer = gpu->createIndexBuffer(kAAFillRectIndexBufferSize, false); |
- if (NULL != fAAFillRectIndexBuffer) { |
+ if (fAAFillRectIndexBuffer) { |
uint16_t* data = (uint16_t*) fAAFillRectIndexBuffer->map(); |
bool useTempData = (NULL == data); |
if (useTempData) { |
@@ -428,7 +428,7 @@ GrIndexBuffer* GrAARectRenderer::aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterS |
if (NULL == fAAMiterStrokeRectIndexBuffer) { |
fAAMiterStrokeRectIndexBuffer = |
gpu->createIndexBuffer(sizeof(gMiterStrokeAARectIdx), false); |
- if (NULL != fAAMiterStrokeRectIndexBuffer) { |
+ if (fAAMiterStrokeRectIndexBuffer) { |
#ifdef SK_DEBUG |
bool updated = |
#endif |
@@ -442,7 +442,7 @@ GrIndexBuffer* GrAARectRenderer::aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterS |
if (NULL == fAABevelStrokeRectIndexBuffer) { |
fAABevelStrokeRectIndexBuffer = |
gpu->createIndexBuffer(sizeof(gBevelStrokeAARectIdx), false); |
- if (NULL != fAABevelStrokeRectIndexBuffer) { |
+ if (fAABevelStrokeRectIndexBuffer) { |
#ifdef SK_DEBUG |
bool updated = |
#endif |