Home
last modified time | relevance | path

Searched refs:surface_id (Results 1 – 15 of 15) sorted by relevance

/external/crosvm/gpu_display/src/
Dlib.rs141 fn release_surface(&mut self, surface_id: u32); in release_surface()
142 fn framebuffer(&mut self, surface_id: u32) -> Option<GpuDisplayFramebuffer>; in framebuffer()
145 surface_id: u32, in framebuffer_region()
151 let framebuffer = self.framebuffer(surface_id)?; in framebuffer_region()
154 fn commit(&mut self, surface_id: u32); in commit()
155 fn next_buffer_in_use(&self, surface_id: u32) -> bool; in next_buffer_in_use()
156 fn flip(&mut self, surface_id: u32); in flip()
157 fn flip_to(&mut self, surface_id: u32, import_id: u32); in flip_to()
158 fn close_requested(&self, surface_id: u32) -> bool; in close_requested()
159 fn set_position(&mut self, surface_id: u32, x: u32, y: u32); in set_position()
[all …]
Dgpu_display_wl.rs141 fn get_surface(&self, surface_id: u32) -> Option<&Surface> { in get_surface()
142 self.surfaces.get(&surface_id) in get_surface()
251 fn release_surface(&mut self, surface_id: u32) { in release_surface()
252 self.surfaces.remove(&surface_id); in release_surface()
255 fn framebuffer(&mut self, surface_id: u32) -> Option<GpuDisplayFramebuffer> { in framebuffer()
256 let surface = self.get_surface(surface_id)?; in framebuffer()
269 fn commit(&mut self, surface_id: u32) { in commit()
270 match self.get_surface(surface_id) { in commit()
277 None => debug_assert!(false, "invalid surface_id {}", surface_id), in commit()
281 fn next_buffer_in_use(&self, surface_id: u32) -> bool { in next_buffer_in_use()
[all …]
Dgpu_display_stub.rs116 fn get_surface(&mut self, surface_id: u32) -> Option<&mut Surface> { in get_surface()
117 SurfaceId::new(surface_id).and_then(move |id| self.surfaces.get_mut(&id)) in get_surface()
120 fn destroy_surface(&mut self, surface_id: u32) { in destroy_surface()
121 SurfaceId::new(surface_id).and_then(|id| self.surfaces.remove(&id)); in destroy_surface()
124 fn flip_surface(&mut self, surface_id: u32) { in flip_surface()
125 if let Some(surface) = self.get_surface(surface_id) { in flip_surface()
163 fn release_surface(&mut self, surface_id: u32) { in release_surface()
164 self.surfaces.destroy_surface(surface_id); in release_surface()
167 fn framebuffer(&mut self, surface_id: u32) -> Option<GpuDisplayFramebuffer> { in framebuffer()
169 .get_surface(surface_id) in framebuffer()
[all …]
Dgpu_display_x.rs631 fn surface_ref(&self, surface_id: u32) -> Option<&Surface> { in surface_ref()
632 ObjectId::new(surface_id).and_then(move |id| self.surfaces.get(&id)) in surface_ref()
635 fn surface_mut(&mut self, surface_id: u32) -> Option<&mut Surface> { in surface_mut()
636 ObjectId::new(surface_id).and_then(move |id| self.surfaces.get_mut(&id)) in surface_mut()
741 fn release_surface(&mut self, surface_id: u32) { in release_surface()
743 ObjectId::new(surface_id).and_then(|id| self.surfaces.remove(&id)) in release_surface()
749 fn framebuffer(&mut self, surface_id: u32) -> Option<GpuDisplayFramebuffer> { in framebuffer()
750 self.surface_mut(surface_id).and_then(|s| s.framebuffer()) in framebuffer()
753 fn next_buffer_in_use(&self, surface_id: u32) -> bool { in next_buffer_in_use()
754 self.surface_ref(surface_id) in next_buffer_in_use()
[all …]
/external/crosvm/gpu_display/examples/
Dsimple.rs9 let surface_id = disp.create_surface(None, 1280, 1024).unwrap(); in main() localVariable
10 disp.flip(surface_id); in main()
11 disp.commit(surface_id); in main()
12 while !disp.close_requested(surface_id) { in main()
Dsimple_open.rs5 let surface_id = disp.create_surface(None, 1280, 1024).unwrap(); in main() localVariable
7 let mem = disp.framebuffer(surface_id).unwrap(); in main()
20 disp.flip(surface_id); in main()
22 while !disp.close_requested(surface_id) { in main()
/external/mesa3d/src/glx/apple/
Dapple_glx_surface.c69 __func__, (void *) ac->context_obj, s->surface_id); in surface_make_current()
71 error = xp_attach_gl_context(ac->context_obj, s->surface_id); in surface_make_current()
99 apple_glx_diagnostic("%s: s->surface_id %u\n", __func__, s->surface_id); in surface_destroy()
101 xp_error error = xp_destroy_surface(s->surface_id); in surface_destroy()
146 error = xp_import_surface(key, &s->surface_id); in create_surface()
Dapple_glx_drawable.h64 xp_surface_id surface_id; member
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs233 let surface_id = in set_scanout() localVariable
235 self.scanout_surface_id = Some(surface_id); in set_scanout()
237 display.attach_event_device(surface_id, *event_device_id); in set_scanout()
326 surface_id: u32, in flush_resource_to_surface()
329 self.display.borrow_mut().flip_to(surface_id, import_id); in flush_resource_to_surface()
340 if display.next_buffer_in_use(surface_id) { in flush_resource_to_surface()
345 .framebuffer_region(surface_id, 0, 0, self.display_width, self.display_height) in flush_resource_to_surface()
352 display.flip(surface_id); in flush_resource_to_surface()
361 if let Some(surface_id) = self.cursor_surface_id.take() { in update_cursor()
362 self.display.borrow_mut().release_surface(surface_id); in update_cursor()
/external/mesa3d/src/gallium/frontends/xvmc/tests/
Dtest_surface.c84 assert(surface.surface_id != 0); in main()
/external/mesa3d/src/gallium/frontends/va/
Dsurface.c305 vlVaPutSurface(VADriverContextP ctx, VASurfaceID surface_id, void* draw, short srcx, short srcy, in vlVaPutSurface() argument
326 surf = handle_table_get(drv->htab, surface_id); in vlVaPutSurface()
979 VASurfaceID surface_id, in vlVaExportSurfaceHandle() argument
1003 surf = handle_table_get(drv->htab, surface_id); in vlVaExportSurfaceHandle()
Dva_private.h419 VAStatus vlVaExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id, uint32_t mem_type, u…
431 void vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, struct pipe_video_buffer **ref_…
Dpicture.c99 vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, in vlVaGetReferenceFrame() argument
102 vlVaSurface *surf = handle_table_get(drv->htab, surface_id); in vlVaGetReferenceFrame()
/external/mesa3d/src/gallium/frontends/xvmc/
Dsurface.c203 surface->surface_id = XAllocID(dpy); in XvMCCreateSurface()
/external/vulkan-validation-layers/layers/generated/
Dlayer_chassis_dispatch.cpp3607 uint64_t surface_id = reinterpret_cast<uint64_t &>(surface); in DispatchDestroySurfaceKHR() local
3608 auto iter = unique_id_mapping.pop(surface_id); in DispatchDestroySurfaceKHR()