diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpu/GrTest.cpp | 23 | ||||
-rw-r--r-- | tools/gpu/GrTest.h | 4 |
2 files changed, 2 insertions, 25 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 2e34d2ff5b..30f73163f0 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -7,7 +7,6 @@ #include "GrTest.h" -#include "GrBackendSurface.h" #include "GrContextOptions.h" #include "GrDrawOpAtlas.h" #include "GrDrawingManager.h" @@ -55,18 +54,6 @@ void SetupAlwaysEvictAtlas(GrContext* context) { context->setTextContextAtlasSizes_ForTesting(configs); } - -GrBackendTexture CreateBackendTexture(GrBackend backend, int width, int height, - GrPixelConfig config, GrBackendObject handle) { - if (kOpenGL_GrBackend == backend) { - GrGLTextureInfo* glInfo = (GrGLTextureInfo*)(handle); - return GrBackendTexture(width, height, config, glInfo); - } else { - SkASSERT(kVulkan_GrBackend == backend); - GrVkImageInfo* vkInfo = (GrVkImageInfo*)(handle); - return GrBackendTexture(width, height, vkInfo); - } -} }; bool GrSurfaceProxy::isWrapped_ForTesting() const { @@ -351,11 +338,7 @@ private: return nullptr; } - sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, - GrSurfaceOrigin, - GrBackendTextureFlags, - int sampleCnt, - GrWrapOwnership) override { + sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) override { return nullptr; } @@ -363,9 +346,7 @@ private: return nullptr; } - sk_sp<GrRenderTarget> onWrapBackendTextureAsRenderTarget(const GrBackendTexture&, - GrSurfaceOrigin, - int sampleCnt) override { + sk_sp<GrRenderTarget> onWrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&) override { return nullptr; } diff --git a/tools/gpu/GrTest.h b/tools/gpu/GrTest.h index d4a4c6dfac..db4c4515b3 100644 --- a/tools/gpu/GrTest.h +++ b/tools/gpu/GrTest.h @@ -8,7 +8,6 @@ #ifndef GrTest_DEFINED #define GrTest_DEFINED -#include "GrBackendSurface.h" #include "GrContext.h" namespace GrTest { @@ -17,9 +16,6 @@ namespace GrTest { * constantly be evicting entries */ void SetupAlwaysEvictAtlas(GrContext*); - - GrBackendTexture CreateBackendTexture(GrBackend, int width, int height, - GrPixelConfig, GrBackendObject); }; #endif |