diff options
author | 2017-06-09 16:11:32 -0400 | |
---|---|---|
committer | 2017-06-09 20:33:51 +0000 | |
commit | 06e547cb5f43dcc829f7f6a2ca773cfd602b32da (patch) | |
tree | e60c9b9483efd02c9c74fa0c12111cfa2d53e512 /src/gpu/GrProcessor.h | |
parent | f066ac908eca30af2bb2fb241fb0eec78caa88db (diff) |
Fix GrGradientEffect::isValid()
This was relying on TextureSampler::proxy() which crashes if the proxy is not valid.
Bug: skia:
Change-Id: I8452f5cea3a71b5ced15259aede52a44ab152cf2
Reviewed-on: https://skia-review.googlesource.com/19403
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProcessor.h')
-rw-r--r-- | src/gpu/GrProcessor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrProcessor.h b/src/gpu/GrProcessor.h index 7a12b6c196..f186af5591 100644 --- a/src/gpu/GrProcessor.h +++ b/src/gpu/GrProcessor.h @@ -255,6 +255,7 @@ public: GrShaderFlags visibility() const { return fVisibility; } const GrSamplerParams& params() const { return fParams; } + bool isInitialized() const { return SkToBool(fProxyRef.get()); } /** * For internal use by GrProcessor. */ |