[PATCH] QA: Add log for wayland performance analysis

2015-02-06 Thread Quanxian Wang
code: https://github.com/quanxianwang/wr-graph.git You can find more information in wiki page. https://wiki.tizen.org/wiki/Wayland_Rendering_Analysis_Tool Quanxian Wang (1): Add wayland rendering performance log clients/perf_log_client.h | 51

[PATCH] weston: Add weston rendering performance log

2015-02-06 Thread Quanxian Wang
/quanxianwang/wr-graph.git Related tools wiki: https://wiki.tizen.org/wiki/Wayland_Rendering_Analysis_Tool Signed-Off-By Quanxian Wang Signed-Off-By Xiaoyanx Zhang --- clients/perf_log_client.h | 51 ++ clients/simple-egl.c | 6 ++ clients/window.c

[PATCH V4 1/7] weston: Add weston randr protocol

2014-04-24 Thread Quanxian Wang
exposed to public. It is only for QA testing and Admin configuration currently. Signed-off-by: Quanxian Wang --- protocol/Makefile.am | 1 + protocol/randr.xml | 316 +++ 2 files changed, 317 insertions(+) create mode 100644 protocol/randr.xml

[PATCH V4 4/7] Add new mode function in drm backend

2014-04-24 Thread Quanxian Wang
provide drm_output_new_mode interface to create new mode from outsite instead of only from edid or configure. Signed-off-by: Quanxian Wang --- src/compositor-drm.c | 92 1 file changed, 92 insertions(+) diff --git a/src/compositor-drm.c b

[PATCH V4 0/7] Add weston randr protocol

2014-04-24 Thread Quanxian Wang
gards Quanxian Wang GENERAL SUMMARY: Important Notes: This protocol is not exposed to public. It is only for QA testing and Admin configuration at the moment. Objective: The idea is from xrandr provided by xserver. *Dynamic* output mode setting is the main objective of this protocol. Remember, it is one

[PATCH V4 2/7] weston: Add the weston randr support in compositor.h

2014-04-24 Thread Quanxian Wang
1) Add weston_randr definition and randr_backend intreface. 2) Export functions used in compositor.c so that module wrandr could use them. For example, weston_output_transform_scale_init. 3) Support new_mode backend interface in output structure. Signed-off-by: Quanxian Wang --- src

[PATCH V4 3/7] weston: Add enable-wrandr option and export common functions

2014-04-24 Thread Quanxian Wang
When starting weston with parameter --enable-wrandr, it will automatically load wrandr.so module. This is for QA testing and Admin configuration. weston_output_transform_scale_init will be used by weston randr module. Signed-off-by: Quanxian Wang --- src/compositor.c | 35

[PATCH V4 7/7] Apps: Add weston-randr application

2014-04-24 Thread Quanxian Wang
More details, please run "weston-wrandr -h" Signed-off-by: Quanxian Wang --- clients/Makefile.am |9 + clients/wrandr.c| 1314 +++ 2 files changed, 1323 insertions(+) create mode 100644 clients/wrandr.c diff --git a/clients/Mak

[PATCH V4 6/7] weston: Add configure to support wrandr.

2014-04-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- Makefile.am | 5 + configure.ac | 8 2 files changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index f22c542..254cde7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,11 +6,16 @@ if ENABLE_XWAYLAND xwayland_subdir = xwayland endif

[PATCH V3 6/7] weston: Add configure to support wrandr.

2014-04-07 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- Makefile.am | 5 + configure.ac | 8 2 files changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index f22c542..254cde7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,11 +6,16 @@ if ENABLE_XWAYLAND xwayland_subdir = xwayland endif

[PATCH V3 1/7] weston: Add weston randr protocol

2014-04-07 Thread Quanxian Wang
will be sent with output parameter one by one. This protocol is not exposed to public. It is only for QA testing and Admin configuration currently. Signed-off-by: Quanxian Wang --- protocol/Makefile.am | 1 + protocol/randr.xml | 260 +++ 2 files

[PATCH V3 2/7] weston: Add the weston randr support in compositor.h

2014-04-07 Thread Quanxian Wang
1) Add weston_randr definition and randr_backend intreface. 2) Export functions used in compositor.c so that module wrandr could use them. For example, weston_output_transform_scale_init. 3) Support new_mode backend interface in output structure. Signed-off-by: Quanxian Wang --- src

[PATCH V3 3/7] weston: Add enable-wrandr option and export common functions

2014-04-07 Thread Quanxian Wang
When starting weston with parameter --enable-wrandr, it will automatically load wrandr.so module. This is for QA testing and Admin configuration. weston_output_transform_scale_init will be used by weston randr module. Signed-off-by: Quanxian Wang --- src/compositor.c | 14 -- 1

[PATCH V3 0/7] Add weston randr protocol

2014-04-07 Thread Quanxian Wang
utput change When you build weston, add option --enable-wrandr to enable building of weston randr module. Like that: ./autogen.sh --enable-wrandr ... Thanks Regards Quanxian Wang General Information: Note: This protocol is not exposed to public. It is only for QA testing and Admin configurati

[PATCH V3 7/7] Apps: Add weston-randr application

2014-04-07 Thread Quanxian Wang
details, please run "weston-wrandr -h" Signed-off-by: Quanxian Wang --- clients/Makefile.am |9 + clients/wrandr.c| 1213 +++ 2 files changed, 1222 insertions(+) create mode 100644 clients/wrandr.c diff --git a/clients/Makefile.am

[PATCH V3 5/7] weston:Add the weston randr protocol implementation

2014-04-07 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- module/Makefile.am|3 + module/wrandr/Makefile.am | 32 ++ module/wrandr/wrandr.c| 1262 + 3 files changed, 1297 insertions(+) create mode 100644 module/Makefile.am create mode 100644 module/wrandr

[PATCH V3 4/7] Add new mode function in drm backend

2014-04-07 Thread Quanxian Wang
provide drm_output_new_mode interface to create new mode from outsite instead of only from edid or configure. Signed-off-by: Quanxian Wang --- src/compositor-drm.c | 76 1 file changed, 76 insertions(+) diff --git a/src/compositor-drm.c b

[PATCH V2 8/8] Add request_id for request set to be distinguished from others

2014-03-24 Thread Quanxian Wang
. If more threads/process use the same client and output at the same time, client app needs generate a request id to be distinguished from others. Signed-off-by: Quanxian Wang --- clients/wrandr.c | 35 ++- module/wrandr/wrandr.c | 31

[PATCH V2 7/8] Apps: Add weston-randr application

2014-03-24 Thread Quanxian Wang
not support operations on multiple outputs in one time. More details, please run "weston-wrandr -h" Signed-off-by: Quanxian Wang --- clients/Makefile.am | 9 + clients/wrandr.c| 862 2 files changed, 871 insertions(+) create m

[PATCH V2 1/8] wesston: Add weston randr protocol

2014-03-24 Thread Quanxian Wang
-off-by: Quanxian Wang --- protocol/Makefile.am | 1 + protocol/randr.xml | 228 +++ 2 files changed, 229 insertions(+) create mode 100644 protocol/randr.xml diff --git a/protocol/Makefile.am b/protocol/Makefile.am index 5e331a7..df2e070 100644

[PATCH V2 4/8] Add new mode function in drm backend

2014-03-24 Thread Quanxian Wang
Provide drm_output_new_mode interface to create new mode from outsite instead of only from edid or configure. Signed-off-by: Quanxian Wang --- src/compositor-drm.c | 67 1 file changed, 67 insertions(+) diff --git a/src/compositor-drm.c b

[PATCH V2 6/8] weston: Add configure to support wrandr.

2014-03-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- Makefile.am | 5 + configure.ac | 8 2 files changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index f22c542..254cde7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,11 +6,16 @@ if ENABLE_XWAYLAND xwayland_subdir = xwayland endif

[PATCH V2 2/8] weston: Add the weston randr support in compositor.h

2014-03-24 Thread Quanxian Wang
1) Add weston_randr definition and randr_backend intreface. 2) Export functions used in compositor.c so that module wrandr could use them. For example, weston_output_transform_scale_init. 3) Support new_mode backend interface in output structure. Signed-off-by: Quanxian Wang --- src

[PATCH V2 5/8] weston:Add the weston randr protocol implementation

2014-03-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- module/Makefile.am| 3 + module/wrandr/Makefile.am | 32 ++ module/wrandr/wrandr.c| 792 ++ 3 files changed, 827 insertions(+) create mode 100644 module/Makefile.am create mode 100644 module/wrandr

[PATCH V2 3/8] weston: Add enable-wrandr option in compositor to load wrandr.so

2014-03-24 Thread Quanxian Wang
When starting weston with parameter --enable-wrandr, it will automatically load wrandr.so module. This is for QA testing and Admin configuration. Signed-off-by: Quanxian Wang --- src/compositor.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src

[PATCH V2 0/8] Add weston randr protocol

2014-03-24 Thread Quanxian Wang
nd make the change. Thanks for your support. Regards Quanxian Wang General Information: Objective: Randr interface will not be exposed. It is only for weston-specific. and it is only for testing and configuration. The idea is from xrandr provided by xserver. *Dynamic* mode setting is the mai

[PATCH 3/3] shell: Add wl_output name event

2014-03-18 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 12 ++-- clients/window.c| 12 ++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index a0c6b6d..9b15e3c 100644 --- a/clients/desktop-shell.c

[PATCH 0/3] Add wl_output name event

2014-03-18 Thread Quanxian Wang
an output. Quanxian Wang (3): wayland: Add wl_output name event shell: Add wl_output name event weston:Add wl_output name event Wayland: protocol/wayland.xml | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) Shell: clients/desktop-shell.c | 12 ++-- clients

[PATCH 2/3] weston:Add wl_output name event

2014-03-18 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- src/compositor.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 40e4b11..78e2b48 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3115,7 +3115,7 @@ bind_output(struct wl_client *client

[PATCH 1/3] wayland: Add wl_output name event

2014-03-18 Thread Quanxian Wang
an output. Signed-off-by: Quanxian Wang --- protocol/wayland.xml | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index d47ee62..881ebad 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1618,7 +1618,7

[PATCH 3/3] shell: Add wl_output name event

2014-03-16 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 10 +- clients/window.c| 10 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index a0c6b6d..cefe936 100644 --- a/clients/desktop-shell.c +++ b

[PATCH 1/3] wayland: Add wl_output name event

2014-03-16 Thread Quanxian Wang
This event contains name of output. It may be sent after binding the output object. It is intended that client could input a character output name as a parameter or for log output. Signed-off-by: Quanxian Wang --- protocol/wayland.xml | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH 0/3] Add wl_output name event

2014-03-16 Thread Quanxian Wang
This event contains name of output. It may be sent after binding the output object. It is intended that client could input a character output name as a parameter or for log output. Mainly for client, provide a sensible character name instead of object. Quanxian Wang (3): wayland: Add wl_output

[PATCH 2/3] weston: Add wl_output name event

2014-03-16 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- src/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 98a4f6f..f82f771 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3044,6 +3044,9 @@ bind_output(struct wl_client *client

[PATCH] weston:Send done event with version 2 of wl_output

2014-03-13 Thread Quanxian Wang
With protocol of wl_output version 2, after the output change, it should send done event to all clients bound with it. Signed-off-by: Quanxian Wang --- src/compositor.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 7c29d51

weston: weston randr protocol for testing and configuration

2014-03-13 Thread Quanxian Wang
protocol/randr.xml b/protocol/randr.xml new file mode 100644 index 000..5c1d2d2 --- /dev/null +++ b/protocol/randr.xml @@ -0,0 +1,166 @@ + + + + + Copyright © 2014 Quanxian Wang +Copyright © 2014 Intel Corporation + +Permission to use, copy, modify, distribute, and sell this +

[PATCH 2/3] weston:Add wl_output name event

2014-03-13 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- src/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 98a4f6f..8e8964b 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3045,6 +3045,9 @@ bind_output(struct wl_client *client

[PATCH 0/3] Add wl_output name event

2014-03-13 Thread Quanxian Wang
This event contains name of output. It may be sent after binding the output object. It is intended that client could input a character output name as a parameter or for log info. Mainly for client, provide a sensible character name instead of object. Quanxian Wang (3): wayland: Add wl_output

[PATCH 3/3] shell: Add wl_output name event

2014-03-13 Thread Quanxian Wang
Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 10 +- clients/window.c| 10 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index a0c6b6d..cefe936 100644 --- a/clients/desktop-shell.c +++ b

[PATCH 1/3] wayland: Add wl_output name event

2014-03-13 Thread Quanxian Wang
This event contains name of output. It may be sent after binding the output object. It is intended that client could input a character output name as a parameter or for log info. Signed-off-by: Quanxian Wang --- protocol/wayland.xml | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH] weston: Send done event with version 2 of wl_output

2014-03-13 Thread Quanxian Wang
With protocol of wl_output version 2, after the output change, it should send done event to all clients bount with it. Signed-off-by: Quanxian Wang --- src/compositor.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 7c29d51

[PATCH] desktop-shell: Bug fix client apps because of output change

2014-03-11 Thread Quanxian Wang
sible outside window.c. Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 75 +++-- clients/window.c| 7 + clients/window.h| 2 ++ 3 files changed, 81 insertions(+), 3 deletions(-) diff --git a/clients/desktop-shell.c b/cl

[PATCH] Bug fix client apps because of output change

2014-03-06 Thread Quanxian Wang
sible outside window.c. Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 80 +++-- clients/window.c| 7 + clients/window.h| 2 ++ 3 files changed, 87 insertions(+), 2 deletions(-) diff --git a/clients/desktop-shell.c b/cl

[PATCH] Bug fix client apps because of output change

2014-03-06 Thread Quanxian Wang
sible outside window.c. Signed-off-by: Quanxian Wang --- clients/desktop-shell.c | 70 + clients/window.c| 7 + clients/window.h| 2 ++ 3 files changed, 79 insertions(+) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c

[PATCH 5/6] Add weston-randr application

2014-02-26 Thread Quanxian Wang
Signed-off-by: Quanxian Wang Reviewed-by: Zhang, Xiong Y --- clients/Makefile.am | 9 + clients/wrandr.c| 642 2 files changed, 651 insertions(+) create mode 100644 clients/wrandr.c diff --git a/clients/Makefile.am b/clients

[PATCH 6/6] Change the size of Panel and Background after output's is changed

2014-02-26 Thread Quanxian Wang
Panel and background depend on the size of output, So they have to be bound with output change including mode, transform and scale. Before resize the panel and background window, their min_allocation has to be reset. Add window_set_min_allocation function Signed-off-by: Quanxian Wang Reviewed

[PATCH 1/6] Add weston randr protocol

2014-02-26 Thread Quanxian Wang
setting the mode, just call one request wl_randr_set_mode without any other operation. Signed-off-by: Quanxian Wang Reviewed-by: Zhang, Xiong Y --- protocol/Makefile.am | 1 + protocol/randr.xml | 151 +++ 2 files changed, 152 insertions(+) create

[PATCH 2/6] Add weston_randr definition and randr_backend intreface

2014-02-26 Thread Quanxian Wang
Signed-off-by: Quanxian Wang Reviewed-by: Zhang, Xiong Y --- src/compositor.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index 22a485f..6bc000f 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -172,6 +172,15 @@ enum

[PATCH 0/6] Add weston randr protocol

2014-02-26 Thread Quanxian Wang
et mode as 1920x1200 4. weston-randr --output HDMI3 -R 1 # rotate HDMI3 output 90 degree 5. weston-randr --output HDMI3 -leftof VGA1 # put HDMI3 output leftof VGA1 6. weston-randr --output HDMI3 -rightof VGA1 # put HDMI3 output rightof VGA1 Quanxian Wang (6): Add weston randr protocol Add we

[PATCH 4/6] Initialize the randr interface in drm backend

2014-02-26 Thread Quanxian Wang
Function get_disoutputs is added in order to provide display port information embedded on the machine. Signed-off-by: Quanxian Wang Reviewed-by: Zhang, Xiong Y --- src/compositor-drm.c | 67 1 file changed, 67 insertions(+) diff --git a/src

[PATCH 3/6] Add the detailed implementation of randr protocol

2014-02-26 Thread Quanxian Wang
1) add the initialization of randr protocol 2) add the randr request implementation Signed-off-by: Quanxian Wang Reviewed-by: Zhang, Xiong Y --- src/Makefile.am | 4 + src/compositor.c | 466 +-- 2 files changed, 423 insertions(+), 47