diff options
author | Nobuhiko Tanibata <ntanibata@jp.adit-jv.com> | 2015-04-14 17:22:38 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <ntanibata@jp.adit-jv.com> | 2015-04-27 15:12:55 +0900 |
commit | 9c7638751ced4a8bb13dd79ceec5f0f5e5738dd2 (patch) | |
tree | dd03c294b2a7e96e7a713fe218c884cb06a58a2e /weston-ivi-shell | |
parent | 4aca4bdf9e5829a45d659f6d82bd047ba0795f26 (diff) | |
download | wayland-ivi-extension-9c7638751ced4a8bb13dd79ceec5f0f5e5738dd2.tar.gz |
ivi-controller: add wrapper functions to call ivi_controller_interface of surface screenshot
Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
Diffstat (limited to 'weston-ivi-shell')
-rwxr-xr-x | weston-ivi-shell/src/ivi-extension.c | 15 | ||||
-rw-r--r-- | weston-ivi-shell/src/ivi-extension.h | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/weston-ivi-shell/src/ivi-extension.c b/weston-ivi-shell/src/ivi-extension.c index fd1289b..0b5a740 100755 --- a/weston-ivi-shell/src/ivi-extension.c +++ b/weston-ivi-shell/src/ivi-extension.c @@ -318,6 +318,21 @@ ivi_extension_surface_set_transition_duration(struct ivishell *shell, } int32_t +ivi_extension_surface_dump(struct ivishell *shell, + struct weston_surface *surface, + void *target, + size_t size, + int32_t x, + int32_t y, + int32_t width, + int32_t height) +{ + struct ivi_controller_shell *controller_shell = (struct ivi_controller_shell*)shell; + + return controller_shell->interface->surface_dump(surface, target, size, x, y, width, height); +} + +int32_t ivi_extension_surface_get_size(struct ivishell *shell, struct ivi_layout_surface *ivisurf, int32_t *width, diff --git a/weston-ivi-shell/src/ivi-extension.h b/weston-ivi-shell/src/ivi-extension.h index 6eef00d..ea3f480 100644 --- a/weston-ivi-shell/src/ivi-extension.h +++ b/weston-ivi-shell/src/ivi-extension.h @@ -204,6 +204,16 @@ ivi_extension_surface_set_transition_duration(struct ivishell *shell, uint32_t duration); int32_t +ivi_extension_surface_dump(struct ivishell *ivishell, + struct weston_surface *surface, + void *target, + size_t size, + int32_t x, + int32_t y, + int32_t width, + int32_t height); + +int32_t ivi_extension_surface_get_size(struct ivishell *shell, struct ivi_layout_surface *ivisurf, int32_t *width, |