Lines Matching refs:gpuHint
2434 struct gpu_hint_info *gpuHint = &ctx->mGPUHintInfo; in setGPUHint() local
2435 if(!gpuHint->mGpuPerfModeEnable || !ctx || !list) in setGPUHint()
2443 if(!gpuHint->mEGLDisplay || !gpuHint->mEGLContext) { in setGPUHint()
2444 gpuHint->mEGLDisplay = eglGetCurrentDisplay(); in setGPUHint()
2445 if(!gpuHint->mEGLDisplay) { in setGPUHint()
2449 gpuHint->mEGLContext = eglGetCurrentContext(); in setGPUHint()
2450 if(!gpuHint->mEGLContext) { in setGPUHint()
2456 if(gpuHint->mCompositionState != COMPOSITION_STATE_GPU in setGPUHint()
2461 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_3) && in setGPUHint()
2462 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2463 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2466 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_3; in setGPUHint()
2467 gpuHint->mCompositionState = COMPOSITION_STATE_GPU; in setGPUHint()
2473 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_0) && in setGPUHint()
2474 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2475 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2478 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_0; in setGPUHint()
2481 gpuHint->mCompositionState = COMPOSITION_STATE_IDLE_FALLBACK; in setGPUHint()
2489 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_0) && in setGPUHint()
2490 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2491 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2494 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_0; in setGPUHint()
2496 gpuHint->mCompositionState = COMPOSITION_STATE_MDP; in setGPUHint()