diff options
author | 2017-07-12 11:59:17 -0400 | |
---|---|---|
committer | 2017-07-20 17:43:52 +0000 | |
commit | 9a0e39054ced312eef691472b1d845bcef656c46 (patch) | |
tree | 6be222a885fc584deeed8c41e87b83c96c7836b7 /src/gpu | |
parent | 80ace82be1308dbc3f45adc95e395e121b0021d2 (diff) |
sk_sp: act as if operator bool() not implicit.
Change-Id: Icd426a162ca0c778db7b3373efcb2c546da50273
Reviewed-on: https://skia-review.googlesource.com/22543
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrSurfaceContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrSurfaceContext.h b/src/gpu/GrSurfaceContext.h index cf7e9df462..0589a60372 100644 --- a/src/gpu/GrSurfaceContext.h +++ b/src/gpu/GrSurfaceContext.h @@ -35,7 +35,7 @@ public: SkColorSpace* getColorSpace() const { return fColorSpace.get(); } sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } - bool isGammaCorrect() const { return fColorSpace; } + bool isGammaCorrect() const { return static_cast<bool>(fColorSpace); } // TODO: these two calls would be way cooler if this object had a GrSurfaceProxy pointer int width() const { return this->asSurfaceProxy()->width(); } |