• Home
  • Raw
  • Download

Lines Matching refs:surf

54 _eglParseSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list)  in _eglParseSurfaceAttribList()  argument
56 _EGLDisplay *disp = surf->Resource.Display; in _eglParseSurfaceAttribList()
57 EGLint type = surf->Type; in _eglParseSurfaceAttribList()
89 surf->GLColorspace = val; in _eglParseSurfaceAttribList()
96 surf->HdrMetadata.display_primary_r.x = val; in _eglParseSurfaceAttribList()
103 surf->HdrMetadata.display_primary_r.y = val; in _eglParseSurfaceAttribList()
110 surf->HdrMetadata.display_primary_g.x = val; in _eglParseSurfaceAttribList()
117 surf->HdrMetadata.display_primary_g.y = val; in _eglParseSurfaceAttribList()
124 surf->HdrMetadata.display_primary_b.x = val; in _eglParseSurfaceAttribList()
131 surf->HdrMetadata.display_primary_b.y = val; in _eglParseSurfaceAttribList()
138 surf->HdrMetadata.white_point.x = val; in _eglParseSurfaceAttribList()
145 surf->HdrMetadata.white_point.y = val; in _eglParseSurfaceAttribList()
152 surf->HdrMetadata.max_luminance = val; in _eglParseSurfaceAttribList()
159 surf->HdrMetadata.min_luminance = val; in _eglParseSurfaceAttribList()
166 surf->HdrMetadata.max_cll = val; in _eglParseSurfaceAttribList()
173 surf->HdrMetadata.max_fall = val; in _eglParseSurfaceAttribList()
186 surf->VGColorspace = val; in _eglParseSurfaceAttribList()
199 surf->VGAlphaFormat = val; in _eglParseSurfaceAttribList()
211 surf->RequestedRenderBuffer = val; in _eglParseSurfaceAttribList()
212 if (surf->Config->SurfaceType & EGL_MUTABLE_RENDER_BUFFER_BIT_KHR) { in _eglParseSurfaceAttribList()
216 surf->ActiveRenderBuffer = val; in _eglParseSurfaceAttribList()
229 surf->PostSubBufferSupportedNV = val; in _eglParseSurfaceAttribList()
241 surf->Width = val; in _eglParseSurfaceAttribList()
252 surf->Height = val; in _eglParseSurfaceAttribList()
259 surf->LargestPbuffer = !!val; in _eglParseSurfaceAttribList()
279 surf->TextureFormat = val; in _eglParseSurfaceAttribList()
297 surf->TextureTarget = val; in _eglParseSurfaceAttribList()
304 surf->MipmapTexture = !!val; in _eglParseSurfaceAttribList()
311 surf->ProtectedContent = val; in _eglParseSurfaceAttribList()
325 if ((surf->TextureTarget == EGL_NO_TEXTURE && surf->TextureFormat != EGL_NO_TEXTURE) || in _eglParseSurfaceAttribList()
326 (surf->TextureFormat == EGL_NO_TEXTURE && surf->TextureTarget != EGL_NO_TEXTURE)) { in _eglParseSurfaceAttribList()
327 attr = surf->TextureTarget == EGL_NO_TEXTURE ? EGL_TEXTURE_TARGET : EGL_TEXTURE_FORMAT; in _eglParseSurfaceAttribList()
344 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *disp, EGLint type, in _eglInitSurface() argument
378 _eglInitResource(&surf->Resource, sizeof(*surf), disp); in _eglInitSurface()
379 surf->Type = type; in _eglInitSurface()
380 surf->Config = conf; in _eglInitSurface()
381 surf->Lost = EGL_FALSE; in _eglInitSurface()
383 surf->Width = 0; in _eglInitSurface()
384 surf->Height = 0; in _eglInitSurface()
385 surf->TextureFormat = EGL_NO_TEXTURE; in _eglInitSurface()
386 surf->TextureTarget = EGL_NO_TEXTURE; in _eglInitSurface()
387 surf->MipmapTexture = EGL_FALSE; in _eglInitSurface()
388 surf->LargestPbuffer = EGL_FALSE; in _eglInitSurface()
389 surf->RequestedRenderBuffer = renderBuffer; in _eglInitSurface()
390 surf->ActiveRenderBuffer = renderBuffer; in _eglInitSurface()
391 surf->VGAlphaFormat = EGL_VG_ALPHA_FORMAT_NONPRE; in _eglInitSurface()
392 surf->VGColorspace = EGL_VG_COLORSPACE_sRGB; in _eglInitSurface()
393 surf->GLColorspace = EGL_GL_COLORSPACE_LINEAR_KHR; in _eglInitSurface()
394 surf->ProtectedContent = EGL_FALSE; in _eglInitSurface()
396 surf->MipmapLevel = 0; in _eglInitSurface()
397 surf->MultisampleResolve = EGL_MULTISAMPLE_RESOLVE_DEFAULT; in _eglInitSurface()
398 surf->SwapBehavior = swapBehavior; in _eglInitSurface()
400 surf->HorizontalResolution = EGL_UNKNOWN; in _eglInitSurface()
401 surf->VerticalResolution = EGL_UNKNOWN; in _eglInitSurface()
402 surf->AspectRatio = EGL_UNKNOWN; in _eglInitSurface()
404 surf->PostSubBufferSupportedNV = EGL_FALSE; in _eglInitSurface()
405 surf->SetDamageRegionCalled = EGL_FALSE; in _eglInitSurface()
406 surf->BufferAgeRead = EGL_FALSE; in _eglInitSurface()
409 surf->SwapInterval = 1; in _eglInitSurface()
411 surf->HdrMetadata.display_primary_r.x = EGL_DONT_CARE; in _eglInitSurface()
412 surf->HdrMetadata.display_primary_r.y = EGL_DONT_CARE; in _eglInitSurface()
413 surf->HdrMetadata.display_primary_g.x = EGL_DONT_CARE; in _eglInitSurface()
414 surf->HdrMetadata.display_primary_g.y = EGL_DONT_CARE; in _eglInitSurface()
415 surf->HdrMetadata.display_primary_b.x = EGL_DONT_CARE; in _eglInitSurface()
416 surf->HdrMetadata.display_primary_b.y = EGL_DONT_CARE; in _eglInitSurface()
417 surf->HdrMetadata.white_point.x = EGL_DONT_CARE; in _eglInitSurface()
418 surf->HdrMetadata.white_point.y = EGL_DONT_CARE; in _eglInitSurface()
419 surf->HdrMetadata.max_luminance = EGL_DONT_CARE; in _eglInitSurface()
420 surf->HdrMetadata.min_luminance = EGL_DONT_CARE; in _eglInitSurface()
421 surf->HdrMetadata.max_cll = EGL_DONT_CARE; in _eglInitSurface()
422 surf->HdrMetadata.max_fall = EGL_DONT_CARE; in _eglInitSurface()
424 err = _eglParseSurfaceAttribList(surf, attrib_list); in _eglInitSurface()
429 if (surf->LargestPbuffer) { in _eglInitSurface()
430 surf->Width = MIN2(surf->Width, _EGL_MAX_PBUFFER_WIDTH); in _eglInitSurface()
431 surf->Height = MIN2(surf->Height, _EGL_MAX_PBUFFER_HEIGHT); in _eglInitSurface()
434 surf->NativeSurface = native_surface; in _eglInitSurface()
764 _eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) in _eglReleaseTexImage() argument
772 if (surf == EGL_NO_SURFACE) in _eglReleaseTexImage()
775 if (!surf->BoundToTexture) in _eglReleaseTexImage()
781 if (surf->TextureFormat == EGL_NO_TEXTURE) in _eglReleaseTexImage()
790 if (!(surf->Type & texture_type)) in _eglReleaseTexImage()
793 surf->BoundToTexture = EGL_FALSE; in _eglReleaseTexImage()
799 _eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf) in _eglSurfaceHasMutableRenderBuffer() argument
801 return surf->Type == EGL_WINDOW_BIT && in _eglSurfaceHasMutableRenderBuffer()
802 surf->Config && in _eglSurfaceHasMutableRenderBuffer()
803 (surf->Config->SurfaceType & EGL_MUTABLE_RENDER_BUFFER_BIT_KHR); in _eglSurfaceHasMutableRenderBuffer()
807 _eglSurfaceInSharedBufferMode(_EGLSurface *surf) in _eglSurfaceInSharedBufferMode() argument
809 return _eglSurfaceHasMutableRenderBuffer(surf) && in _eglSurfaceInSharedBufferMode()
810 surf->ActiveRenderBuffer == EGL_SINGLE_BUFFER; in _eglSurfaceInSharedBufferMode()