Home | History | Annotate | Download | only in timer

Lines Matching refs:fContext

12 GpuTimer::GpuTimer(const SkGLContextHelper* glctx) : fContext(glctx) {
13 if (fContext) {
14 fContext->ref();
15 fContext->makeCurrent();
17 fSupported = GrGLGetVersion(fContext->gl()) > GR_GL_VER(3,3) ||
18 fContext->hasExtension("GL_ARB_timer_query") ||
19 fContext->hasExtension("GL_EXT_timer_query");
22 SK_GL(*fContext, GenQueries(1, &fQuery));
28 if (fContext) {
30 fContext->makeCurrent();
31 SK_GL(*fContext, DeleteQueries(1, &fQuery));
33 fContext->unref();
38 if (fContext && fSupported) {
39 fContext->makeCurrent();
41 SK_GL(*fContext, BeginQuery(GR_GL_TIME_ELAPSED, fQuery));
50 if (fContext && fSupported) {
52 fContext->makeCurrent();
53 SK_GL(*fContext, EndQuery(GR_GL_TIME_ELAPSED));
57 SK_GL_NOERRCHECK(*fContext, GetQueryObjectiv(fQuery,
63 SK_GL_RET_NOERRCHECK(*fContext, error, GetError());
69 SK_GL(*fContext, GetQueryObjectui64v(fQuery,