Lines Matching defs:ctx
58 std::unique_ptr<GLGpuTimer> GLGpuTimer::MakeIfSupported(const sk_gpu_test::GLTestContext* ctx) {
61 const GrGLInterface* gl = ctx->gl();
63 ret.reset(new GLGpuTimer(true, ctx, "EXT"));
66 ret.reset(new GLGpuTimer(false, ctx));
68 ret.reset(new GLGpuTimer(false, ctx, "EXT"));
80 GLGpuTimer::GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext* ctx, const char* ext)
82 ctx->getGLProcAddress(&fGLGetIntegerv, "glGetIntegerv");
83 ctx->getGLProcAddress(&fGLGenQueries, "glGenQueries", ext);
84 ctx->getGLProcAddress(&fGLDeleteQueries, "glDeleteQueries", ext);
85 ctx->getGLProcAddress(&fGLBeginQuery, "glBeginQuery", ext);
86 ctx->getGLProcAddress(&fGLEndQuery, "glEndQuery", ext);
87 ctx->getGLProcAddress(&fGLGetQueryObjectuiv, "glGetQueryObjectuiv", ext);
88 ctx->getGLProcAddress(&fGLGetQueryObjectui64v, "glGetQueryObjectui64v", ext);
174 static bool fence_is_supported(const GLTestContext* ctx) {
176 if (kGL_GrGLStandard == ctx->gl()->fStandard) {
177 if (GrGLGetVersion(ctx->gl()) < GR_GL_VER(3, 2) &&
178 !ctx->gl()->hasExtension("GL_ARB_sync")) {
183 if (ctx->gl()->hasExtension("GL_APPLE_sync")) {
185 } else if (ctx->gl()->hasExtension("GL_NV_fence")) {
187 } else if (GrGLGetVersion(ctx->gl()) >= GR_GL_VER(3, 0)) {