aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar Timothy Liang <timliang@google.com>2018-07-13 13:24:05 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-13 18:38:14 +0000
commit36848f6b30ddaca461c98e13b9976b2c449ca547 (patch)
treeed1626f12d90a0f8f154c2b89fb938f64c8ed499 /dm
parent81d151103faca621cfe62c9dfbec842ec9f337c4 (diff)
implemented metal gpu backend texture upload testing
Bug: skia: Change-Id: Ia3af58a0710f7f9792b37682a3cc45dd14282b71 Reviewed-on: https://skia-review.googlesource.com/140248 Commit-Queue: Timothy Liang <timliang@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'dm')
-rw-r--r--dm/DMGpuTestProcs.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}