diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-19 18:28:58 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-20 00:21:18 +0000 |
commit | d17f6584df9e48146dac28a1df56fb4978de6ba3 (patch) | |
tree | aff8a4c10de409c9e07c09d936fd9c3b6b32cae3 /src/gpu/GrBackendSurface.cpp | |
parent | 22b2d8c5e111825440fa3496be1cf030a5bbafd7 (diff) |
Remove GrBackendTextureDesc
Change-Id: I2b123d1782400e97ab2ce2f11e3e3d325a13e6c8
Reviewed-on: https://skia-review.googlesource.com/24748
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrBackendSurface.cpp')
-rw-r--r-- | src/gpu/GrBackendSurface.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gpu/GrBackendSurface.cpp b/src/gpu/GrBackendSurface.cpp index bc6f9a2c02..d37c73a4a0 100644 --- a/src/gpu/GrBackendSurface.cpp +++ b/src/gpu/GrBackendSurface.cpp @@ -43,33 +43,6 @@ GrBackendTexture::GrBackendTexture(int width, , fBackend(kMock_GrBackend) , fMockInfo(mockInfo) {} -GrBackendTexture::GrBackendTexture(const GrBackendTextureDesc& desc, GrBackend backend) - : fWidth(desc.fWidth) - , fHeight(desc.fHeight) - , fConfig(desc.fConfig) - , fBackend(backend) { - switch (backend) { - case kOpenGL_GrBackend: - fGLInfo = *reinterpret_cast<const GrGLTextureInfo*>(desc.fTextureHandle); - break; -#ifdef SK_VULKAN - case kVulkan_GrBackend: { - const GrVkImageInfo* vkInfo = - reinterpret_cast<const GrVkImageInfo*>(desc.fTextureHandle); - fConfig = GrVkFormatToPixelConfig(vkInfo->fFormat); - fVkInfo = *vkInfo; - break; - } -#endif - case kMock_GrBackend: - fMockInfo = *reinterpret_cast<const GrMockTextureInfo*>(desc.fTextureHandle); - break; - default: - fConfig = kUnknown_GrPixelConfig; - break; - } -} - #ifdef SK_VULKAN const GrVkImageInfo* GrBackendTexture::getVkImageInfo() const { if (this->isValid() && kVulkan_GrBackend == fBackend) { |