Lines Matching defs:ctxInfo
329 static int get_programs_max_stages(const sk_gpu_test::ContextInfo& ctxInfo) {
332 auto context = ctxInfo.directContext();
333 if (skiatest::IsGLContextType(ctxInfo.type())) {
340 if (gpu->ctxInfo().vendor() != GrGLVendor::kARM) {
352 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType) {
354 } else if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) {
362 static int get_programs_max_levels(const sk_gpu_test::ContextInfo& ctxInfo) {
366 if (skiatest::IsGLContextType(ctxInfo.type())) {
372 GrGLGpu* gpu = static_cast<GrGLGpu*>(ctxInfo.directContext()->priv().getGpu());
375 if (gpu->ctxInfo().vendor() == GrGLVendor::kImagination) {
379 if (ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D9_ES2_ContextType ||
380 ctxInfo.type() == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES2_ContextType) {
388 static void test_programs(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo) {
389 int maxStages = get_programs_max_stages(ctxInfo);
393 int maxLevels = get_programs_max_levels(ctxInfo);
398 REPORTER_ASSERT(reporter, GrDrawingManager::ProgramUnitTest(ctxInfo.directContext(), maxStages,