From 36848f6b30ddaca461c98e13b9976b2c449ca547 Mon Sep 17 00:00:00 2001 From: Timothy Liang Date: Fri, 13 Jul 2018 13:24:05 -0400 Subject: implemented metal gpu backend texture upload testing Bug: skia: Change-Id: Ia3af58a0710f7f9792b37682a3cc45dd14282b71 Reviewed-on: https://skia-review.googlesource.com/140248 Commit-Queue: Timothy Liang Reviewed-by: Greg Daniel --- dm/DMGpuTestProcs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dm') diff --git a/dm/DMGpuTestProcs.cpp b/dm/DMGpuTestProcs.cpp index abae62806f..ae8c7ab689 100644 --- a/dm/DMGpuTestProcs.cpp +++ b/dm/DMGpuTestProcs.cpp @@ -19,6 +19,9 @@ bool IsGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { bool IsVulkanContextType(sk_gpu_test::GrContextFactory::ContextType type) { return kVulkan_GrBackend == GrContextFactory::ContextTypeBackend(type); } +bool IsMetalContextType(sk_gpu_test::GrContextFactory::ContextType type) { + return kMetal_GrBackend == GrContextFactory::ContextTypeBackend(type); +} bool IsRenderingGLContextType(sk_gpu_test::GrContextFactory::ContextType type) { return IsGLContextType(type) && GrContextFactory::IsRenderingContext(type); } -- cgit v1.2.3