From 032aaae5be51e92ec9677d6c511241b19a7cb70d Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 23 Mar 2018 16:10:36 -0400 Subject: Remove legacy GrContext factories function and supporting code/types. Change-Id: I437a4a0a58bf70ea1b8b0659b099a2af2bfa64fe Reviewed-on: https://skia-review.googlesource.com/116197 Commit-Queue: Brian Salomon Reviewed-by: Greg Daniel --- tools/gpu/TestContext.h | 1 - tools/gpu/gl/GLTestContext.h | 3 --- tools/gpu/mock/MockTestContext.cpp | 4 +--- tools/gpu/mtl/MtlTestContext.mm | 2 -- tools/gpu/vk/VkTestContext.h | 3 --- 5 files changed, 1 insertion(+), 12 deletions(-) (limited to 'tools/gpu') diff --git a/tools/gpu/TestContext.h b/tools/gpu/TestContext.h index 5b512db7ba..2949cc709e 100644 --- a/tools/gpu/TestContext.h +++ b/tools/gpu/TestContext.h @@ -59,7 +59,6 @@ public: SkScopeExit SK_WARN_UNUSED_RESULT makeCurrentAndAutoRestore() const; virtual GrBackend backend() = 0; - virtual GrBackendContext backendContext() = 0; virtual sk_sp makeGrContext(const GrContextOptions&); diff --git a/tools/gpu/gl/GLTestContext.h b/tools/gpu/gl/GLTestContext.h index cea630ac49..f5a05932a2 100644 --- a/tools/gpu/gl/GLTestContext.h +++ b/tools/gpu/gl/GLTestContext.h @@ -21,9 +21,6 @@ public: ~GLTestContext() override; virtual GrBackend backend() override { return kOpenGL_GrBackend; } - virtual GrBackendContext backendContext() override { - return reinterpret_cast(fGL.get()); - } bool isValid() const { return SkToBool(this->gl()); } diff --git a/tools/gpu/mock/MockTestContext.cpp b/tools/gpu/mock/MockTestContext.cpp index 5cc5529dfe..6075bc83c2 100644 --- a/tools/gpu/mock/MockTestContext.cpp +++ b/tools/gpu/mock/MockTestContext.cpp @@ -20,9 +20,7 @@ public: ~MockTestContext() override {} virtual GrBackend backend() override { return kMock_GrBackend; } - virtual GrBackendContext backendContext() override { - return reinterpret_cast(nullptr); - } + void testAbandon() override {} void submit() override {} void finish() override {} diff --git a/tools/gpu/mtl/MtlTestContext.mm b/tools/gpu/mtl/MtlTestContext.mm index 38755b2ef0..cdc0f8f168 100644 --- a/tools/gpu/mtl/MtlTestContext.mm +++ b/tools/gpu/mtl/MtlTestContext.mm @@ -122,8 +122,6 @@ public: GrBackend backend() override { return kMetal_GrBackend; } - GrBackendContext backendContext() override { return 0; } - void testAbandon() override {} // There is really nothing to here since we don't own any unqueued command buffers here. diff --git a/tools/gpu/vk/VkTestContext.h b/tools/gpu/vk/VkTestContext.h index 5090f556b4..9fd4170d9d 100644 --- a/tools/gpu/vk/VkTestContext.h +++ b/tools/gpu/vk/VkTestContext.h @@ -18,9 +18,6 @@ namespace sk_gpu_test { class VkTestContext : public TestContext { public: virtual GrBackend backend() override { return kVulkan_GrBackend; } - virtual GrBackendContext backendContext() override { - return reinterpret_cast(fVk.get()); - } sk_sp getVkBackendContext() { return fVk; -- cgit v1.2.3