diff options
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/GrTest.cpp | 22 | ||||
-rw-r--r-- | tools/gpu/GrTest.h | 5 |
2 files changed, 1 insertions, 26 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 0001d1dc27..552dd8a67e 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -78,28 +78,6 @@ GrBackendTexture CreateBackendTexture(GrBackend backend, int width, int height, } } -GrBackendRenderTarget CreateBackendRenderTarget(GrBackend backend, int width, int height, - int sampleCnt, int stencilBits, - GrPixelConfig config, - GrBackendObject handle) { - switch (backend) { -#ifdef SK_VULKAN - case kVulkan_GrBackend: { - GrVkImageInfo* vkInfo = (GrVkImageInfo*)(handle); - return GrBackendRenderTarget(width, height, sampleCnt, stencilBits, *vkInfo); - } -#endif - case kOpenGL_GrBackend: { - GrGLFramebufferInfo glInfo; - glInfo.fFBOID = handle; - return GrBackendRenderTarget(width, height, sampleCnt, stencilBits, config, glInfo); - } - case kMock_GrBackend: // fall through - default: - return GrBackendRenderTarget(); - } -} - } // namespace GrTest bool GrSurfaceProxy::isWrapped_ForTesting() const { diff --git a/tools/gpu/GrTest.h b/tools/gpu/GrTest.h index 1134932ad9..5d988c7b04 100644 --- a/tools/gpu/GrTest.h +++ b/tools/gpu/GrTest.h @@ -18,12 +18,9 @@ namespace GrTest { */ void SetupAlwaysEvictAtlas(GrContext*); + // TODO: remove this. It is only used in the SurfaceSemaphores Test. GrBackendTexture CreateBackendTexture(GrBackend, int width, int height, GrPixelConfig, GrMipMapped, GrBackendObject); - - GrBackendRenderTarget CreateBackendRenderTarget(GrBackend, int width, int height, - int sampleCnt, int stencilBits, - GrPixelConfig, GrBackendObject); }; #endif |