aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBackendSurface.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2018-02-13 17:02:19 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-13 17:02:31 +0000
commit559823d1fee3a9e26170d0ac1f3aaa87b3a3c66a (patch)
tree74a3eded6110558487836262490e3eb027534e3c /src/gpu/GrBackendSurface.cpp
parent8a83ca4e9afc9e3c08b4e8c33a74392f9b3154d7 (diff)
Revert "Add SkCharacterization creation helper to GrContextThreadSafeProxy"
This reverts commit d76e56d93c27856b10d6636882a5ffcd79a9d967. Reason for revert: broke NexusPlayer Vulkan Original change's description: > Add SkCharacterization creation helper to GrContextThreadSafeProxy > > Change-Id: I8ad7cf335f2b586cf501eaa70573690fbbd53efa > Reviewed-on: https://skia-review.googlesource.com/106105 > Reviewed-by: Brian Salomon <bsalomon@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=egdaniel@google.com,bsalomon@google.com,robertphillips@google.com Change-Id: I72b75ff700d39839f7207955566e48bb544aaf6b No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/106968 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/gpu/GrBackendSurface.cpp')
-rw-r--r--src/gpu/GrBackendSurface.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/gpu/GrBackendSurface.cpp b/src/gpu/GrBackendSurface.cpp
index dcfbe3b5a5..16fa793d25 100644
--- a/src/gpu/GrBackendSurface.cpp
+++ b/src/gpu/GrBackendSurface.cpp
@@ -14,55 +14,6 @@
#include "vk/GrVkUtil.h"
#endif
-GrBackendFormat::GrBackendFormat(GrGLenum format, GrGLenum target)
- : fBackend(kOpenGL_GrBackend)
- , fValid(true)
- , fGLTarget(target)
- , fGLFormat(format) {
-}
-
-const GrGLenum* GrBackendFormat::getGLFormat() const {
- if (this->isValid() && kOpenGL_GrBackend == fBackend) {
- return &fGLFormat;
- }
- return nullptr;
-}
-
-const GrGLenum* GrBackendFormat::getGLTarget() const {
- if (this->isValid() && kOpenGL_GrBackend == fBackend) {
- return &fGLTarget;
- }
- return nullptr;
-}
-
-#ifdef SK_VULKAN
-GrBackendFormat::GrBackendFormat(VkFormat vkFormat)
- : fBackend(kVulkan_GrBackend)
- , fValid(true)
- , fVkFormat(vkFormat) {
-}
-
-const VkFormat* GrBackendFormat::getVkFormat() const {
- if (this->isValid() && kVulkan_GrBackend == fBackend) {
- return &fVkFormat;
- }
- return nullptr;
-}
-#endif
-
-GrBackendFormat::GrBackendFormat(GrPixelConfig config)
- : fBackend(kMock_GrBackend)
- , fValid(true)
- , fMockFormat(config) {
-}
-
-const GrPixelConfig* GrBackendFormat::getMockFormat() const {
- if (this->isValid() && kMock_GrBackend == fBackend) {
- return &fMockFormat;
- }
- return nullptr;
-}
-
#ifdef SK_VULKAN
GrBackendTexture::GrBackendTexture(int width,
int height,