Lines Matching +full:native +full:- +full:test
4 * Use of this source code is governed by a BSD-style license that can be
8 #include "tests/Test.h"
45 void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contextTypeFilter, in RunWithGPUTestContexts() argument
55 // Use "native" instead of explicitly trying OpenGL and OpenGL ES. Do not use GLES on in RunWithGPUTestContexts()
63 // We destroy the factory and its associated contexts after each test. This is due to the in RunWithGPUTestContexts()
64 // fact that the command buffer sits on top of the native GL windowing (cgl, wgl, ...) but in RunWithGPUTestContexts()
66 // native windowing API is used directly outside of the command buffer code. in RunWithGPUTestContexts()
75 (*test)(reporter, ctxInfo); in RunWithGPUTestContexts()
76 // In case the test changed the current context make sure we move it back before in RunWithGPUTestContexts()
78 ctxInfo.testContext()->makeCurrent(); in RunWithGPUTestContexts()
80 ctxInfo.directContext()->flushAndSubmit(/*sync*/true); in RunWithGPUTestContexts()
89 void RunWithGraphiteTestContexts(GraphiteTestFn* test, Reporter* reporter) { in RunWithGraphiteTestContexts() argument
97 (*test)(reporter, context.get()); in RunWithGraphiteTestContexts()