diff options
author | Greg Daniel <egdaniel@google.com> | 2017-12-18 14:48:15 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-18 21:17:46 +0000 |
commit | f5d8758f29390fd5c135df12bc8a5e196854eda2 (patch) | |
tree | a7de0b54b030dda4549bc9feb0a0e2ff65ded7d6 /src/gpu/mtl/GrMtlCaps.h | |
parent | 4fafedd33add9948db1147c60d681ed9340984fd (diff) |
Add new SkImage factory to create from GrBackendTexture with SkColorType
Bug: skia:
Change-Id: I46bdc54b6d9cdacc8f5a06644aa6b110837879f0
Reviewed-on: https://skia-review.googlesource.com/84342
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlCaps.h')
-rw-r--r-- | src/gpu/mtl/GrMtlCaps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.h b/src/gpu/mtl/GrMtlCaps.h index 3f2adf8f7d..bc8aac9f8e 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h @@ -57,6 +57,10 @@ public: } private: + bool onValidateBackendTexture(GrBackendTexture* tex, SkColorType ct) const override { + return false; + } + void initFeatureSet(MTLFeatureSet featureSet); void initGrCaps(const id<MTLDevice> device); |