commit | 760dbc4b53499f891a9e2057524956f8381535e3 | [log] [tgz] |
---|---|---|
author | Timothy Liang <[email protected]> | Tue Jul 17 13:28:20 2018 -0400 |
committer | Skia Commit-Bot <[email protected]> | Wed Jul 18 18:17:32 2018 +0000 |
tree | 1fd1d7ba614122c5532e985594c202084f635098 | |
parent | 8f8bf8880d9d9fe8280fa29304063ecc7207e59f [diff] [blame] |
Reland "implemented metal gpu backend texture upload testing" This reverts commit a80a012456a95a6996a8901268ec34ed0cc3aecb. Reason for revert: Fix bot failure. Original change's description: > Revert "implemented metal gpu backend texture upload testing" > > This reverts commit 36848f6b30ddaca461c98e13b9976b2c449ca547. > > Reason for revert: Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR failing. > > Original change's description: > > implemented metal gpu backend texture upload testing > > > > Bug: skia: > > Change-Id: Ia3af58a0710f7f9792b37682a3cc45dd14282b71 > > Reviewed-on: https://skia-review.googlesource.com/140248 > > Commit-Queue: Timothy Liang <[email protected]> > > Reviewed-by: Greg Daniel <[email protected]> > > [email protected],[email protected],[email protected] > > Change-Id: Idf40fc78b82aec1efbcc64221b6d2bbf63353960 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia: > Reviewed-on: https://skia-review.googlesource.com/141182 > Reviewed-by: Timothy Liang <[email protected]> > Commit-Queue: Timothy Liang <[email protected]> Bug: skia: Change-Id: Ib8c5b2e0cf9de25c11c14741a32846bcc874d712 Reviewed-on: https://skia-review.googlesource.com/141183 Reviewed-by: Greg Daniel <[email protected]> Commit-Queue: Timothy Liang <[email protected]>
diff --git a/dm/DMGpuTestProcs.cpp b/dm/DMGpuTestProcs.cpp index abae628..ae8c7ab 100644 --- a/dm/DMGpuTestProcs.cpp +++ b/dm/DMGpuTestProcs.cpp
@@ -19,6 +19,9 @@ 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); }