• Home
  • Raw
  • Download

Lines Matching refs:contexts

338     ContextInfo contexts[2];  in TEST_P()  local
359 contexts[0].context = eglCreateContext(display, config, EGL_NO_CONTEXT, contextAttributes); in TEST_P()
360 contexts[0].display = display; in TEST_P()
361 ASSERT_NE(contexts[0].context, EGL_NO_CONTEXT); in TEST_P()
362 eglMakeCurrent(display, surface, surface, contexts[0].context); in TEST_P()
363 contexts[0].program = CompileProgram(essl1_shaders::vs::Simple(), essl1_shaders::fs::Red()); in TEST_P()
364 glGenQueriesEXT(1, &contexts[0].query); in TEST_P()
368 contexts[1].context = eglCreateContext(display, config, EGL_NO_CONTEXT, contextAttributes); in TEST_P()
369 contexts[1].display = display; in TEST_P()
370 ASSERT_NE(contexts[1].context, EGL_NO_CONTEXT); in TEST_P()
371 eglMakeCurrent(display, surface, surface, contexts[1].context); in TEST_P()
372 contexts[1].program = CompileProgram(kCostlyVS, kCostlyFS); in TEST_P()
373 glGenQueriesEXT(1, &contexts[1].query); in TEST_P()
377 eglMakeCurrent(display, surface, surface, contexts[0].context); in TEST_P()
378 glBeginQueryEXT(GL_TIME_ELAPSED_EXT, contexts[0].query); in TEST_P()
379 drawQuad(contexts[0].program, essl1_shaders::PositionAttrib(), 0.8f); in TEST_P()
383 eglMakeCurrent(display, surface, surface, contexts[1].context); in TEST_P()
384 glBeginQueryEXT(GL_TIME_ELAPSED_EXT, contexts[1].query); in TEST_P()
385 drawQuad(contexts[1].program, "position", 0.8f); in TEST_P()
390 eglMakeCurrent(display, surface, surface, contexts[0].context); in TEST_P()
395 glGetQueryObjectui64vEXT(contexts[0].query, GL_QUERY_RESULT_EXT, &result1); in TEST_P()
396 glDeleteQueriesEXT(1, &contexts[0].query); in TEST_P()
397 glDeleteProgram(contexts[0].program); in TEST_P()
401 eglMakeCurrent(display, surface, surface, contexts[1].context); in TEST_P()
402 glGetQueryObjectui64vEXT(contexts[1].query, GL_QUERY_RESULT_EXT, &result2); in TEST_P()
403 glDeleteQueriesEXT(1, &contexts[1].query); in TEST_P()
404 glDeleteProgram(contexts[1].program); in TEST_P()