
weston/wayland
文章平均质量分 63
client与server之间的交互
maze.ma
向wuxiaowen学习!!!
向何小龙学习!!!
展开
-
display:wayland:wayland-book翻译
整个wayland-book的翻译原创 2022-08-06 11:00:08 · 919 阅读 · 1 评论 -
display: weston: client: screenshoot
总体三部分:client: screenshot.cserver: screenshooter.c + gl-renderer.c原创 2021-09-15 19:19:31 · 926 阅读 · 0 评论 -
display: weston: opaque region笔记
client的设置方法:region = wl_compositor_create_region(window->display->compositor);wl_region_add(region, 0, 0, window->geometry.width, window->geometry.height);wl_surface_set_opaque_region(window->surface, region);wl_region_de原创 2021-09-01 22:49:13 · 1526 阅读 · 0 评论 -
Where is the implementation of pixman_region32_init()?
https://stackoverflow.com/questions/48434760/where-is-the-implementation-of-pixman-region32-initIt's inpixman-region32.c. You don't see it because those functions are generated by thePREFIXmacro and then the code inpixman-region.cis used. See here:...转载 2021-08-06 11:25:59 · 533 阅读 · 0 评论 -
display: mesa: eglapi接口:eglswapbuffers
某一帧eglswapbuffer事件的时间格外长,达到300ms以上的情况基于这个问题。因为是wayland/weston的体系。所以面对的eglswapbuffer其实有两个部分:1.client端的eglswapbuffer,这部分是有相关的wayland协议支持的。platform_waylan2.weston内部gl-renderer模块的eglswapbuffer。platform_drm.c原创 2021-08-01 22:34:11 · 2282 阅读 · 2 评论 -
display:weston:desktop & xdg-shell
xdgshell里面有几套接口,分别是:static const struct xdg_wm_base_interface weston_desktop_xdg_shell_implementation = { .destroy = weston_desktop_destroy_request, .create_positioner = weston_desktop_xdg_shell_protocol_create_positioner, .get_xdg_surface = weston_d原创 2021-06-04 09:48:17 · 2541 阅读 · 0 评论 -
display:weston结构体笔记
一下例子均基于desktop-shellweston_headweston_outputweston_surface:客户端调用wl_compositor_create_surfaceserver端调用 static voidcompositor_create_surface(struct wl_client *client, struct wl_resource *resource, uint32_t id){ struct weston_compositor *.原创 2021-05-31 13:59:00 · 1666 阅读 · 6 评论 -
display:agl-compositor
https://docs.automotivelinux.org/en/master/#5_Component_Documentation/1_agl-compositor/这个agl-compositor有点ivi-shell的味道。原创 2021-04-23 14:21:55 · 1107 阅读 · 1 评论 -
wayland protocal and programming
Written in 2012 before wayland 1.0 released, most of them are outdated as in May 2017.wayland是异步的面向对象的协议,所有请求都是在某个对象上的方法调用。每个对象实现一个接口,描述一系列操作。请求包含对象id,唯一标识服务器上的一个对象,还包括opcode,指出在对象上调用的方法。server向clie...转载 2019-07-24 15:54:52 · 4529 阅读 · 1 评论 -
display:从Weston到DP
本文旨在总结最进工作经验以及汇总之前博文wayland/weston介绍文章:display:Wayland Architecture https://blog.youkuaiyun.com/u012839187/article/details/94599565 简单介绍x-server与weston的区别与联系。原创 2021-04-11 21:56:14 · 2534 阅读 · 2 评论 -
wayland详解
简单地说,Wayland是一套display server(Wayland compositor)与client间的通信协议,而Weston是Wayland compositor的参考实现。其官网为http://wayland.freedesktop.org/。它们定位于在Linux上替换X图形系统。X图形系统经历了30年左右的发展,其设计在今天看来已略显陈旧。在X系统中,X Server作为中心...转载 2019-07-05 12:49:18 · 22180 阅读 · 3 评论 -
display: XDC2012: Graphics stack security
在XDC2012的第一天,Martin Peres和TimothéeRavier的会议探讨了图形堆栈中的安全性。他们考虑了用户对图形用户界面(GUI)中安全性的期望,并针对X11和Weston(Wayland的参考合成窗口管理器)中的实现回顾了这些期望,并涵盖了其他一些方面。 Martin在开始演讲时指出,他们已经对该主题进行了大量研究,尽管他们是Linux安全工程师而不是X开发人员,但他希望他们仍然可以向听众提供有用的信息。User security expectations and the X se翻译 2021-02-16 20:49:29 · 517 阅读 · 1 评论 -
display:weston:weston-simple-egl: server端
接上篇:https://blog.youkuaiyun.com/u012839187/article/details/112415876原创 2021-01-25 10:33:16 · 1726 阅读 · 1 评论 -
display:weston:weston-simple-egl
写在前面:客户端渲染在Wayland架构中,客户端UI的所有呈现均由客户端代码执行,通常由客户端使用的图形工具包执行。图形工具箱可以使用其希望呈现UI元素的任何方法:在CPU上进行软件呈现,使用GLES进行硬件呈现。 Wayland所需要做的就是将客户端渲染的每一帧和窗口的结果像素发送到合成器。 像素数据可能以几种方式传输,具体取决于渲染方式以及客户端和合成器相互支持的内容: 包含实际像素数据的共享内存缓冲区。 如果没有其他机制,则支持这些备用机制。 GPU缓冲区共享(DRM原创 2021-01-09 23:44:09 · 4579 阅读 · 1 评论 -
display:weston:man weston 相关
man westonWESTON(1) General Commands Manual WESTON(1)NAME weston - the reference Wayland ...翻译 2020-12-31 22:12:24 · 2416 阅读 · 0 评论 -
display:weston:查询clinet api对应server的具体实现
对应的具体实现在wayland/src/wayland-shm.c;查询client api具体实现;以wl_shm_pool_create_buffer举例client端,simple-shm使用wl_shm_pool_create_buffer 在wayland/protocol/ 或者 wayland-protocol 或者weston里面搜索:$ grep -rn "wl_shm_pool_create_buffer" 找到对应的协议wayland-client-protocol.h原创 2020-08-07 14:18:24 · 888 阅读 · 0 评论 -
display:wesotn:clienst:simple-dmabuf-drm & simple-dmabuf-egl
simple-dmabuf-drm在19年的mainline里面被废弃,原因如下ommit 0a4f6e7d6d63585d287e4f4e2edbc39228d6eed1Author: Simon Ser <contact@emersion.fr>Date: Tue Jul 16 15:18:25 2019 +0300 clients: drop simple-dmabuf-drm This client contains driver-specifi原创 2020-07-23 19:49:36 · 2614 阅读 · 0 评论 -
display:The Wayland Book 节选Input
source code:https://git.sr.ht/~sircmpwn/wayland-book本文内容均节选自 《The Wayland Book》Seats: Handling inputFrom the client's perspective, it's reasonably straightforward. If you bind to the wl_seat globalThis interface is relatively straightforward. The s转载 2020-07-18 15:53:41 · 511 阅读 · 0 评论 -
display:The Wayland Book 节选dmabuf&XDG
source code:https://git.sr.ht/~sircmpwn/wayland-book本文内容均节选自 《The Wayland Book》Linux dmabufMost Wayland compositors do their rendering on the GPU, and many Wayland clients do their rendering on the GPU as well. With the shared memory approach, sendin转载 2020-07-17 11:20:18 · 1671 阅读 · 2 评论 -
display:The Wayland Book 节选
source code:https://git.sr.ht/~sircmpwn/wayland-book本文内容均节选自 《The Wayland Book》High-level design Your computer has input and output devices, which respectively are responsible for receiving information from you and displaying information to you. Thes转载 2020-07-14 15:09:21 · 1930 阅读 · 0 评论 -
tools:在ubuntu 20.04上搭建weston环境
参考:https://wayland.freedesktop.org/building.htmlhttps://github.com/wayland-project/wayland-build-tools1.git clonehttps://github.com/wayland-project/wayland-build-toolsStep 1: Install git, and clone the wayland-build-tools repository apt-.原创 2020-07-06 17:43:58 · 6207 阅读 · 5 评论 -
display:weston渲染流程:commit
接上一篇display:weston渲染流程:buffer+attach+damage+framehttps://blog.youkuaiyun.com/u012839187/article/details/100580627下面讲commit5.commithttps://happyseeker.github.io/graphic/2016/11/10/wayland-commit-relative-flow.htmlSurface state (input, opaqueand damag.原创 2020-06-01 11:25:52 · 7359 阅读 · 7 评论 -
display:rk3288随笔
http://www.t-firefly.com/doc/download/page/id/4.html安装:RK驱动助手 安装:windows固件升级工具 下载:Ubuntu系统 下载:linux-sdk gpt源码包根据wiki设置rk3288进去maskrom 升级为ubuntu[选中固件,擦除flash,升级固件]...原创 2020-03-14 18:42:26 · 1182 阅读 · 0 评论 -
display:weston初始化
平台:Qcomweston version: 5.0.0Weston initialization总体上来说,weston初始化分为一下几个阶段Create wl_displayLoad backed modulesCreate compositorBackend initializationCreate listen socket...原创 2019-11-21 16:28:29 · 3039 阅读 · 0 评论 -
display:Wayland Architecture
Wayland ArchitectureA good way to understand the wayland architecture and how it is different from X is to follow an event from the input device to the point where the change it affects appears on s...翻译 2019-07-04 10:51:53 · 2587 阅读 · 0 评论 -
Wayland与Weston简介
简单地说,Wayland是一套display server(Wayland compositor)与client间的通信协议,而Weston是Wayland compositor的参考实现。其官网为http://wayland.freedesktop.org/。它们定位于在Linux上替换X图形系统。X图形系统经历了30年左右的发展,其设计在今天看来已略显陈旧。在X系统中,X Server作为中心...转载 2019-10-08 11:23:28 · 1179 阅读 · 0 评论 -
display:weston.ini文件配置
http://manpages.org/westonini/5INTRODUCTIONWeston obtains configuration from its command line parameters and the configuration file described here.weston有两种方式获取参数,一是启动weston命令时添加对应参数,具体可通过weston...翻译 2019-07-26 17:19:41 · 8760 阅读 · 1 评论 -
display:weston渲染流程:buffer+attach+damage+frame
1.attach将wl_buffer设置为pending wl_buffer而不是currect。2.commit将pending wl_buffer设置为currect surface的buffer。3.surface的大小由buffer决定。wl_surface.attach assigns the given wl_buffer as the pending wl_buffer....原创 2019-09-10 15:24:20 · 7043 阅读 · 3 评论 -
display:weston的client端绘画[subsurface,fullscreen]
weston的源代码里面有关于client的绘画例子建议追踪https://github.com/wayland-project/weston/blob/master/clients/client端的例子一直在变,最近的一次改动将ivi的支持拿掉。增加一种功能的操作例子shm.c[增加subsurface支持]struct display { struct wl_display...原创 2019-08-27 19:28:37 · 2716 阅读 · 0 评论