| 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));
|
| }
|
|
|
|
|