Lines Matching refs:gpuHint
2091 struct gpu_hint_info *gpuHint = &ctx->mGPUHintInfo; in setGPUHint() local
2092 if(!gpuHint->mGpuPerfModeEnable || !ctx || !list) in setGPUHint()
2100 if(!gpuHint->mEGLDisplay || !gpuHint->mEGLContext) { in setGPUHint()
2101 gpuHint->mEGLDisplay = eglGetCurrentDisplay(); in setGPUHint()
2102 if(!gpuHint->mEGLDisplay) { in setGPUHint()
2106 gpuHint->mEGLContext = eglGetCurrentContext(); in setGPUHint()
2107 if(!gpuHint->mEGLContext) { in setGPUHint()
2113 if(gpuHint->mCompositionState != COMPOSITION_STATE_GPU in setGPUHint()
2118 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_3) && in setGPUHint()
2119 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2120 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2123 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_3; in setGPUHint()
2124 gpuHint->mCompositionState = COMPOSITION_STATE_GPU; in setGPUHint()
2130 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_0) && in setGPUHint()
2131 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2132 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2135 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_0; in setGPUHint()
2138 gpuHint->mCompositionState = COMPOSITION_STATE_IDLE_FALLBACK; in setGPUHint()
2146 if((gpuHint->mCurrGPUPerfMode != EGL_GPU_LEVEL_0) && in setGPUHint()
2147 !eglGpuPerfHintQCOM(gpuHint->mEGLDisplay, in setGPUHint()
2148 gpuHint->mEGLContext, attr_list)) { in setGPUHint()
2151 gpuHint->mCurrGPUPerfMode = EGL_GPU_LEVEL_0; in setGPUHint()
2153 gpuHint->mCompositionState = COMPOSITION_STATE_MDP; in setGPUHint()