| Index: src/gpu/GrLayerCache.h
|
| diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h
|
| index fcf62f9c3a8faa59503b2f9ad627657f785c05de..fc1467e1205b1a900197072ef01865f3a586b364 100644
|
| --- a/src/gpu/GrLayerCache.h
|
| +++ b/src/gpu/GrLayerCache.h
|
| @@ -122,7 +122,7 @@ public:
|
| }
|
| GrPlot* plot() { return fPlot; }
|
|
|
| - bool isAtlased() const { return NULL != fPlot; }
|
| + bool isAtlased() const { return SkToBool(fPlot); }
|
|
|
| void setLocked(bool locked) { fLocked = locked; }
|
| bool locked() const { return fLocked; }
|
| @@ -146,7 +146,7 @@ private:
|
| // It is always NULL for non-atlased layers.
|
| GrPlot* fPlot;
|
|
|
| - // For non-atlased layers 'fLocked' should always match "NULL != fTexture".
|
| + // For non-atlased layers 'fLocked' should always match "fTexture".
|
| // (i.e., if there is a texture it is locked).
|
| // For atlased layers, 'fLocked' is true if the layer is in a plot and
|
| // actively required for rendering. If the layer is in a plot but not
|
|
|