commit | 9187e49ed155857d64d29648b9ad1c7175735e40 | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Mon Nov 11 16:14:13 2019 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Nov 12 14:56:28 2019 +0000 |
tree | 0ee5f92e522550bdde22ded25930cea95cf8674d | |
parent | 3a62ed4ff19b3ab751479571b935b62baba63a23 [diff] |
Detect whether trying to blit a Metal swapchain texture, and fail if so. Metal swapchain textures (equivalent to GL's FBO 0) can't be used with MTLBlitCommandEncoder. For copySurface we need to detect this and fail. Future changes will handle GrSurfaceProxy. Change-Id: I9235d91cf31e96260c8d1da5938f5441d2e49d27 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/252045 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>