aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-03-20 08:54:16 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-20 13:31:49 +0000
commit6405e71279e99731f89db69325c6763ec62a98e1 (patch)
treef1ce7b3cc37ec3e9f9f4f135655376fd30174753 /dm/DM.cpp
parent5e21e0991968271ee37f446de7e08620ad1b50bb (diff)
Remove gpu configs that don't have explicit API.
DOCS_PREVIEW= https://skia.org/?cl=9871 Change-Id: I510473cf91d8bee38d1e33424b1ae7b30dc86968 Reviewed-on: https://skia-review.googlesource.com/9871 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index d3d12393a6..7c504baf3b 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1491,13 +1491,19 @@ void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contex
Reporter* reporter, GrContextFactory* factory) {
#if SK_SUPPORT_GPU
+#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_MAC)
+ static constexpr auto kNativeGLType = GrContextFactory::kGL_ContextType;
+#else
+ static constexpr auto kNativeGLType = GrContextFactory::kGLES_ContextType;
+#endif
+
for (int typeInt = 0; typeInt < GrContextFactory::kContextTypeCnt; ++typeInt) {
GrContextFactory::ContextType contextType = (GrContextFactory::ContextType) typeInt;
// Use "native" instead of explicitly trying OpenGL and OpenGL ES. Do not use GLES on
// desktop since tests do not account for not fixing http://skbug.com/2809
if (contextType == GrContextFactory::kGL_ContextType ||
contextType == GrContextFactory::kGLES_ContextType) {
- if (contextType != GrContextFactory::kNativeGL_ContextType) {
+ if (contextType != kNativeGLType) {
continue;
}
}