Lines Matching defs:surface
51 * Parse the list of surface attributes and return the proper error code.
201 /* window surface attributes */
246 /* pbuffer surface attributes */
329 /* no pixmap surface specific attributes */
348 _eglLog(_EGL_WARNING, "bad surface attribute 0x%04x", attr);
390 /* The config can't be used to create a surface of this type */
457 _eglQuerySurface(_EGLDisplay *disp, _EGLSurface *surface,
462 *value = surface->Width;
465 *value = surface->Height;
468 *value = surface->Config->ConfigID;
471 if (surface->Type == EGL_PBUFFER_BIT)
472 *value = surface->LargestPbuffer;
476 if (surface->Type == EGL_PBUFFER_BIT)
477 *value = surface->TextureFormat;
480 if (surface->Type == EGL_PBUFFER_BIT)
481 *value = surface->TextureTarget;
484 if (surface->Type == EGL_PBUFFER_BIT)
485 *value = surface->MipmapTexture;
488 if (surface->Type == EGL_PBUFFER_BIT)
489 *value = surface->MipmapLevel;
492 *value = surface->SwapBehavior;
498 * rendering is requested to use. For a window surface, this is the
499 * attribute value specified when the surface was created or last set
502 * In other words, querying a window surface returns the value most
507 * For a pbuffer surface, it is always EGL_BACK_BUFFER . For a pixmap
508 * surface, it is always EGL_SINGLE_BUFFER . To determine the actual
511 switch (surface->Type) {
515 *value = surface->RequestedRenderBuffer;
526 *value = surface->AspectRatio;
529 *value = surface->HorizontalResolution;
532 *value = surface->VerticalResolution;
535 *value = surface->MultisampleResolve;
538 *value = surface->VGAlphaFormat;
541 *value = surface->VGColorspace;
547 *value = surface->GLColorspace;
550 *value = surface->PostSubBufferSupportedNV;
562 EGLint result = disp->Driver->QueryBufferAge(disp, surface);
567 ctx->DrawSurface != surface)
571 surface->BufferAgeRead = EGL_TRUE;
574 *value = surface->HdrMetadata.display_primary_r.x;
577 *value = surface->HdrMetadata.display_primary_r.y;
580 *value = surface->HdrMetadata.display_primary_g.x;
583 *value = surface->HdrMetadata.display_primary_g.y;
586 *value = surface->HdrMetadata.display_primary_b.x;
589 *value = surface->HdrMetadata.display_primary_b.y;
592 *value = surface->HdrMetadata.white_point.x;
595 *value = surface->HdrMetadata.white_point.y;
598 *value = surface->HdrMetadata.max_luminance;
601 *value = surface->HdrMetadata.min_luminance;
604 *value = surface->HdrMetadata.max_cll;
607 *value = surface->HdrMetadata.max_fall;
612 *value = surface->ProtectedContent;
617 *value = surface->PresentOpaque;
631 _eglSurfaceAttrib(_EGLDisplay *disp, _EGLSurface *surface,
642 confval = surface->Config->RenderableType;
647 surface->MipmapLevel = value;
654 confval = surface->Config->SurfaceType;
664 surface->MultisampleResolve = value;
680 * attribute of the EGLConfig used to create surface does not contain
684 if (!(surface->Config->SurfaceType & EGL_MUTABLE_RENDER_BUFFER_BIT_KHR)) {
689 surface->RequestedRenderBuffer = value;
696 confval = surface->Config->SurfaceType;
706 surface->SwapBehavior = value;
709 surface->HdrMetadata.display_primary_r.x = value;
712 surface->HdrMetadata.display_primary_r.y = value;
715 surface->HdrMetadata.display_primary_g.x = value;
718 surface->HdrMetadata.display_primary_g.y = value;
721 surface->HdrMetadata.display_primary_b.x = value;
724 surface->HdrMetadata.display_primary_b.y = value;
727 surface->HdrMetadata.white_point.x = value;
730 surface->HdrMetadata.white_point.y = value;
733 surface->HdrMetadata.max_luminance = value;
736 surface->HdrMetadata.min_luminance = value;
739 surface->HdrMetadata.max_cll = value;
742 surface->HdrMetadata.max_fall = value;
756 _eglBindTexImage(_EGLDisplay *disp, _EGLSurface *surface, EGLint buffer)
767 if (!(surface->Type & texture_type))
770 if (surface->TextureFormat == EGL_NO_TEXTURE)
773 if (surface->TextureTarget == EGL_NO_TEXTURE)
779 surface->BoundToTexture = EGL_TRUE;