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

Unified Diff: src/pipe/SkGPipeWrite.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/lazy/SkDiscardableMemoryPool.cpp ('k') | src/ports/SkFontConfigParser_android.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pipe/SkGPipeWrite.cpp
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp
index b5d2522348e0c422123da72af134328876b595b5..f361e5ed67ecf092b4fd3a10f41f793e4f5cac69 100644
--- a/src/pipe/SkGPipeWrite.cpp
+++ b/src/pipe/SkGPipeWrite.cpp
@@ -1035,15 +1035,15 @@ void SkGPipeCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4
size_t size = SkPatchUtils::kNumCtrlPts * sizeof(SkPoint);
unsigned flags = 0;
- if (NULL != colors) {
+ if (colors) {
flags |= kDrawVertices_HasColors_DrawOpFlag;
size += SkPatchUtils::kNumCorners * sizeof(SkColor);
}
- if (NULL != texCoords) {
+ if (texCoords) {
flags |= kDrawVertices_HasTexs_DrawOpFlag;
size += SkPatchUtils::kNumCorners * sizeof(SkPoint);
}
- if (NULL != xmode) {
+ if (xmode) {
SkXfermode::Mode mode;
if (xmode->asMode(&mode) && SkXfermode::kModulate_Mode != mode) {
flags |= kDrawVertices_HasXfermode_DrawOpFlag;
@@ -1057,11 +1057,11 @@ void SkGPipeCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4
fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
- if (NULL != colors) {
+ if (colors) {
fWriter.write(colors, SkPatchUtils::kNumCorners * sizeof(SkColor));
}
- if (NULL != texCoords) {
+ if (texCoords) {
fWriter.write(texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint));
}
« no previous file with comments | « src/lazy/SkDiscardableMemoryPool.cpp ('k') | src/ports/SkFontConfigParser_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698