diff options
author | 2015-12-10 23:19:29 -0800 | |
---|---|---|
committer | 2015-12-10 23:19:29 -0800 | |
commit | 55eeae97227fa2523207bc67523da5b9eb663536 (patch) | |
tree | c14fff6248bf858946fbdf5f0eeddccfcd1f2ade /dm | |
parent | 62d3b101106602d87cad91b0ac97c10003ca33a5 (diff) |
Run debug gl context for DEF_GPU_TEST_FOR_ALL_CONTEXTS
Run debug gl context for tests defined with
DEF_GPU_TEST_FOR_ALL_CONTEXTS.
Review URL: https://codereview.chromium.org/1514023002
Diffstat (limited to 'dm')
-rw-r--r-- | dm/DM.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1185,12 +1185,12 @@ void RunWithGPUTestContexts(T test, GPUTestContexts testContexts, Reporter* repo int contextSelector = kNone_GPUTestContexts; if (GrContextFactory::IsRenderingGLContext(glCtxType)) { contextSelector |= kAllRendering_GPUTestContexts; - } - if (glCtxType == GrContextFactory::kNative_GLContextType) { + } else if (glCtxType == GrContextFactory::kNative_GLContextType) { contextSelector |= kNative_GPUTestContexts; - } - if (glCtxType == GrContextFactory::kNull_GLContextType) { + } else if (glCtxType == GrContextFactory::kNull_GLContextType) { contextSelector |= kNull_GPUTestContexts; + } else if (glCtxType == GrContextFactory::kDebug_GLContextType) { + contextSelector |= kDebug_GPUTestContexts; } if ((testContexts & contextSelector) == 0) { continue; |