[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 V4 6/7] weston: Add configure to support wrandr.

2014-04-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- clients/Makefile.am |9 + clients/wrandr.c| 1314 +++ 2 files changed, 1323 insertions(+) create mode 100644 clients/wrandr.c diff --git

[PATCH V4 0/7] Add weston randr protocol

2014-04-24 Thread Quanxian Wang
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 shot

[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 quanxian.w...@intel.com --- src/compositor-drm.c | 92 1 file changed, 92 insertions(+) diff --git

[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 quanxian.w

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

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

[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 quanxian.w...@intel.com --- src/compositor.c

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

2014-04-07 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- src/compositor-drm.c | 76 1 file changed, 76 insertions(+) diff --git

[PATCH V3 0/7] Add weston randr protocol

2014-04-07 Thread Quanxian Wang
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 configuration

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

2014-04-07 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- protocol/Makefile.am | 1 + protocol/randr.xml | 260

[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 quanxian.w

[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 quanxian.w...@intel.com --- src/compositor.c

[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 quanxian.w...@intel.com --- src/compositor.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff

[PATCH V2 0/8] Add weston randr protocol

2014-03-24 Thread Quanxian Wang
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 main objective

[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 quanxian.w...@intel.com --- src/compositor-drm.c | 67 1 file changed, 67 insertions(+) diff --git

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

2014-03-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w

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

2014-03-24 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- 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 quanxian.w...@intel.com --- clients/Makefile.am | 9 + clients/wrandr.c| 862 2 files changed, 871 insertions

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

2014-03-24 Thread Quanxian Wang
-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

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

2014-03-18 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

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

2014-03-18 Thread Quanxian Wang
for an output. Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[PATCH 0/3] Add wl_output name event

2014-03-18 Thread Quanxian Wang
for 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 3/3] shell: Add wl_output name event

2014-03-18 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- 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

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

2014-03-16 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com --- src/compositor.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src

[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 quanxian.w...@intel.com --- protocol/wayland.xml | 11 +++ 1 file changed, 11

[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 quanxian.w...@intel.com --- 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

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

2014-03-13 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

weston: weston randr protocol for testing and configuration

2014-03-13 Thread Quanxian Wang
# put HDMI3 output leftof VGA1 Group operations example: 5. weston-randr --output HDMI3 --transform 3 --scale 2 --mode 2 -leftof VGA1 Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- protocol/randr.xml | 166 +++ 1 files changed, 166

[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 quanxian.w...@intel.com --- src/compositor.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src

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

2014-03-11 Thread Quanxian Wang
outside window.c. Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[PATCH] Bug fix client apps because of output change

2014-03-06 Thread Quanxian Wang
outside window.c. Signed-off-by: Quanxian Wang quanxian.w...@intel.com --- 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

[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 quanxian.w...@intel.com Reviewed-by: Zhang, Xiong Y xiong.y.zh...@intel.com --- src/compositor-drm.c | 67 1

[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 quanxian.w...@intel.com Reviewed-by: Zhang, Xiong Y xiong.y.zh...@intel.com --- src/Makefile.am | 4 + src/compositor.c | 466

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

2014-02-26 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com Reviewed-by: Zhang, Xiong Y xiong.y.zh...@intel.com --- 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

[PATCH 0/6] Add weston randr protocol

2014-02-26 Thread Quanxian Wang
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 weston_randr

[PATCH 1/6] Add weston randr protocol

2014-02-26 Thread Quanxian Wang
, if setting the mode, just call one request wl_randr_set_mode without any other operation. Signed-off-by: Quanxian Wang quanxian.w...@intel.com Reviewed-by: Zhang, Xiong Y xiong.y.zh...@intel.com --- protocol/Makefile.am | 1 + protocol/randr.xml | 151

[PATCH 5/6] Add weston-randr application

2014-02-26 Thread Quanxian Wang
Signed-off-by: Quanxian Wang quanxian.w...@intel.com Reviewed-by: Zhang, Xiong Y xiong.y.zh...@intel.com --- clients/Makefile.am | 9 + clients/wrandr.c| 642 2 files changed, 651 insertions(+) create mode 100644 clients/wrandr.c diff

[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 quanxian.w