| Index: include/gpu/GrCoordTransform.h
|
| diff --git a/include/gpu/GrCoordTransform.h b/include/gpu/GrCoordTransform.h
|
| index 0bd7da0a0d4160debd896e046601cd8c9face2de..734c26fae94610fdb0fdc2cbca056a6ab6564ead 100644
|
| --- a/include/gpu/GrCoordTransform.h
|
| +++ b/include/gpu/GrCoordTransform.h
|
| @@ -63,7 +63,7 @@ public:
|
|
|
| void reset(GrCoordSet sourceCoords, const GrTexture* texture) {
|
| SkASSERT(!fInEffect);
|
| - SkASSERT(NULL != texture);
|
| + SkASSERT(texture);
|
| this->reset(sourceCoords, MakeDivByTextureWHMatrix(texture), texture);
|
| }
|
|
|
| @@ -71,7 +71,7 @@ public:
|
| SkASSERT(!fInEffect);
|
| fSourceCoords = sourceCoords;
|
| fMatrix = m;
|
| - fReverseY = NULL != texture && kBottomLeft_GrSurfaceOrigin == texture->origin();
|
| + fReverseY = texture && kBottomLeft_GrSurfaceOrigin == texture->origin();
|
| }
|
|
|
| GrCoordTransform& operator= (const GrCoordTransform& other) {
|
| @@ -104,7 +104,7 @@ public:
|
| /** Useful for effects that want to insert a texture matrix that is implied by the texture
|
| dimensions */
|
| static inline SkMatrix MakeDivByTextureWHMatrix(const GrTexture* texture) {
|
| - SkASSERT(NULL != texture);
|
| + SkASSERT(texture);
|
| SkMatrix mat;
|
| mat.setIDiv(texture->width(), texture->height());
|
| return mat;
|
|
|