diff options
author | Brian Salomon <bsalomon@google.com> | 2018-02-26 14:32:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-26 20:43:18 +0000 |
commit | 5f33a8ccac141dfaddddc7b9fc39a8428cc233fe (patch) | |
tree | bc01188bd6ffbce272ce0bccb8f13da1163f26a8 /src/gpu/mtl | |
parent | 5ba448c21aa002055aa68942f1f50fd4cdfd8033 (diff) |
Start on new GPU pixel ops implementation.
The new ops attempt to be less optimal by falling back to CPU conversions
rather than relying on intermediate draws and complex coordination between
GrContext and GrGpu to determine how conversions are performed.
This adds the new writePixels implementation.
Change-Id: I7496d86d5a40277ed2ca63668881c160e54d80d3
Reviewed-on: https://skia-review.googlesource.com/109880
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/mtl')
-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 c23a9028ca..61eaffed64 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h @@ -31,6 +31,10 @@ public: int getRenderTargetSampleCount(int requestedCount, GrPixelConfig) const override; int maxRenderTargetSampleCount(GrPixelConfig) const override; + bool renderTargetWritePixelsSupported(bool isAlsoTexture, int sampleCnt) const override { + return true; + } + bool isConfigCopyable(GrPixelConfig config) const override { return true; } |