• Home
  • Raw
  • Download

Lines Matching refs:surface

39 NWebCreateInfo NWebSurfaceAdapter::GetCreateInfo(sptr<Surface> surface,  in GetCreateInfo()  argument
46 .producer_surface = reinterpret_cast<void *>(&surface), in GetCreateInfo()
48 if (surface == nullptr) { in GetCreateInfo()
51 GetSize(surface, createInfo, width, height); in GetCreateInfo()
52 GetRenderInterface(surface, createInfo); in GetCreateInfo()
56 void NWebSurfaceAdapter::GetSize(sptr<Surface> surface, in GetSize() argument
61 if (surface == nullptr) { in GetSize()
64 createInfo.width = (width == 0) ? (uint32_t)surface->GetDefaultWidth() : width; in GetSize()
65 createInfo.height = (height == 0) ? (uint32_t)surface->GetDefaultHeight() : height; in GetSize()
68 void NWebSurfaceAdapter::GetRenderInterface(sptr<Surface> surface, NWebCreateInfo &createInfo) in GetRenderInterface() argument
70 wptr<Surface> surfaceWeak(surface); in GetRenderInterface()
72 sptr<Surface> surface = surfaceWeak.promote(); in GetRenderInterface() local
73 if (surface == nullptr) { in GetRenderInterface()
78 sptr<SurfaceBuffer> surfaceBuffer = this->RequestBuffer(surface, width, height); in GetRenderInterface()
84 surface->CancelBuffer(surfaceBuffer); in GetRenderInterface()
88 return this->FlushBuffer(surface, surfaceBuffer, width, height); in GetRenderInterface()
92 sptr<SurfaceBuffer> NWebSurfaceAdapter::RequestBuffer(sptr<Surface> surface, uint32_t width, uint32… in RequestBuffer() argument
94 if (surface == nullptr) { in RequestBuffer()
109 SurfaceError ret = surface->RequestBuffer(surfaceBuffer, releaseFence, config); in RequestBuffer()
161 sptr<Surface> surface, sptr<SurfaceBuffer> surfaceBuffer, uint32_t width, uint32_t height) in FlushBuffer() argument
163 if (surface == nullptr) { in FlushBuffer()
175 SurfaceError ret = surface->FlushBuffer(surfaceBuffer, -1, flushConfig); in FlushBuffer()