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 --- tests/Test.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/Test.h') diff --git a/tests/Test.h b/tests/Test.h index 97604a2c72..a4c931b330 100644 --- a/tests/Test.h +++ b/tests/Test.h @@ -129,6 +129,7 @@ typedef bool GrContextTypeFilterFn(GrContextFactoryContextType); extern bool IsGLContextType(GrContextFactoryContextType); extern bool IsVulkanContextType(GrContextFactoryContextType); +extern bool IsMetalContextType(GrContextFactoryContextType); extern bool IsRenderingGLContextType(GrContextFactoryContextType); extern bool IsNullGLContextType(GrContextFactoryContextType); void RunWithGPUTestContexts(GrContextTestFn*, GrContextTypeFilterFn*, Reporter*, @@ -213,6 +214,9 @@ private: #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \ DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, \ reporter, context_info, nullptr) +#define DEF_GPUTEST_FOR_METAL_CONTEXT(name, reporter, context_info) \ + DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsMetalContextType, \ + reporter, context_info, nullptr) #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \ do { \ -- cgit v1.2.3