SooChan Lim [Wed, 11 Nov 2020 00:46:32 +0000 (09:46 +0900)]
e_hwc_window_queue: use e_client_cdata_get
Change-Id: I75a1eb03dc0416dccb8e4ce8d5ce3056dc87240a
SooChan Lim [Wed, 11 Nov 2020 00:45:34 +0000 (09:45 +0900)]
e_hwc_planes: use e_client_cdata_get
Change-Id: I1f5ccc05ff6557e20782f93f9d217b7b6f040634
SooChan Lim [Wed, 11 Nov 2020 00:45:03 +0000 (09:45 +0900)]
e_hwc_window: use e_client_cdata_get
Change-Id: Ied0741907dee35971aa3072c6c1253daf3bb5eb0
SooChan Lim [Wed, 11 Nov 2020 00:49:22 +0000 (09:49 +0900)]
e_output: use e_client_cdata_get
Change-Id: I2fe492cc4050285a48a83d6d4dcd5eeb9bc36cae
SooChan Lim [Wed, 11 Nov 2020 00:43:12 +0000 (09:43 +0900)]
e_comp_screen: use e_client_cdata_get
Change-Id: Iabe0f01f65d3d73e39aa962f8973b22044df59db
Seunghun Lee [Mon, 26 Oct 2020 06:36:43 +0000 (15:36 +0900)]
video_buffer: Do not call memcpy() with the size greater than dest.
Calling memcpy() with the size greater than dest may lead to a segfault,
since this causes a buffer overrun.
The pitch size of src is not guaranteed to have the same size as dest.
So it should use min value.
Change-Id: I3b4125cc7faa02bfc52e904160ffe711dc354594
Seunghun Lee [Wed, 14 Oct 2020 04:55:48 +0000 (13:55 +0900)]
video: Do not free an instance in a handler of removing E_Client.
Do not free an instance associated with tizen_video_object in a handler
of removing E_Client. The instance should be removed with wl_resource.
Change-Id: I6d3ac1ab81cc69a3b161415e84de41a20cf0520a
Seunghun Lee [Tue, 6 Oct 2020 05:39:10 +0000 (14:39 +0900)]
video: Remove unused variable.
Change-Id: I64ed366889acc86afd1da98486076f394af8f27f
Seunghun Lee [Tue, 6 Oct 2020 05:07:35 +0000 (14:07 +0900)]
video: Rename functions and variables more detail.
no functional changes
Change-Id: I1e506a2f535e8428d5618b1206b551e28eae8e12
Seunghun Lee [Fri, 11 Sep 2020 08:33:01 +0000 (17:33 +0900)]
video: Destroy hwc interface explicitly when rendering is failed.
It's better to destroy interface explicitly at where it is created.
Therefore there is no need to return boolean value and leave an
extra description for how behavior will be changed according to
return value.
Change-Id: Ia0d828c9e16ce96556d46a2535ff9c1c1f9048b5
Changyeon Lee [Mon, 9 Nov 2020 07:02:47 +0000 (16:02 +0900)]
e_hwc_windows: check visible of image object before obscured_by_target is set
Change-Id: Ib06752c9ec9ca8e8332c610d2dce1c45b283349a
Changyeon Lee [Fri, 6 Nov 2020 10:16:00 +0000 (19:16 +0900)]
e_hwc_windows: send discard feedback if commit ins't needed
Change-Id: I4628e82556fcbe4e33df6a17401e0e61fc56883c
Changyeon Lee [Fri, 6 Nov 2020 10:06:05 +0000 (19:06 +0900)]
e_hwc_windows: don' call sync callback if hwc needs re_evaluate
transition of hwc can be set false even if hwc_commit is needed.
Change-Id: I528deaebf748e6c6e2f09981c5d1611c61767848
Seunghun Lee [Thu, 5 Nov 2020 07:58:44 +0000 (16:58 +0900)]
subsurface: Place sub-surface under parent even if it's in below_list.
E didn't handle the task required for placing below parent if
sub-surface was in below_list.
But to me, the name of this API seems to be supposed to make sub-surface
place below parent whenever it's invoked. And I think this way is more
reasonable.
Change-Id: I371fdb8fdd20a2a0b007cdfe1f00573d4a6a0e00
Seunghun Lee [Thu, 5 Nov 2020 07:47:49 +0000 (16:47 +0900)]
subsurface: fix changing stack order of sub-surface with its parent.
Sub-surface can be placed above or below of its parent by passing its
sub-surface with its parent as arguments to
wl_subsurface_place_above/below according to wl_subsurface description.
However, until now enlightenment seems not to have been supported this
operation correctly. In other words, enlightenment wasn't able to handle
stacking order of sub-surface in case wl_subsurface_place_above/below is
required with a parent of sub-surface.
This patch corrects it.
Change-Id: Icd65bf1759f1c7a3b950f6c9c222a41c9817a8ae
Seunghun Lee [Tue, 22 Sep 2020 05:08:38 +0000 (14:08 +0900)]
subsurface: fix not inserting subsurface to pending state first.
The z-order is double-buffered. So, subsurface has to be inserted to
pending list first, not to active list.
Change-Id: Id76563920c511f8321d11c3e44bdfd80fd605f62
Seunghun Lee [Tue, 22 Sep 2020 04:52:01 +0000 (13:52 +0900)]
subsurface: Raise a protocol error for a bad parent.
This case should be failed noisily.
Change-Id: If20eadc7bab66696fe01f323b03bb3a7f9d7819e
Seunghun Lee [Tue, 22 Sep 2020 04:32:11 +0000 (13:32 +0900)]
subsurface: Do not raise a protocol error for a reference surface as parent.
According to a documentation of wl_subsurface, a parent surface can be a
reference surface for wl_subsurface.place_(above/below) interface.
Change-Id: Iafb202dce3a88e12e9be24809a61aca5746e1fc6
Seunghun Lee [Tue, 22 Sep 2020 02:59:22 +0000 (11:59 +0900)]
subsurface: Raise a protocol error about wl_subsurface.place_(above/below).
Check for bad sibling and raise the required error.
Change-Id: Iaa2af9818e35c62fbc8b15ed5222c4bc431eba2a
Changyeon Lee [Fri, 6 Nov 2020 08:29:12 +0000 (17:29 +0900)]
Revert "e_hwc_windows: send discard feedback if commit ins't needed"
This reverts commit
de5d14338e6156fbd43974538ee5a7ab9425adbb.
Change-Id: I6b2b7ed1a1faea41579a5163c9de639aad0d3bcc
Doyoun Kang [Fri, 6 Nov 2020 03:07:39 +0000 (12:07 +0900)]
e_desk: add log for setting/unsetting zoom
Change-Id: If1780377baafea967e15e430bfe6c42742b61eb3
Doyoun Kang [Fri, 6 Nov 2020 03:03:34 +0000 (12:03 +0900)]
Revert "e_desk: run zoom-effect only if the zoom ratio is changed"
This reverts commit
ffef14549adfec917d47482ac829e6ce2e78e571.
Change-Id: I0dd273237e86843d6b7322fcdea2d434202e3093
Changyeon Lee [Thu, 5 Nov 2020 09:47:52 +0000 (18:47 +0900)]
e_comp_wl_tizen_hwc: add timer to hwc_commit_feedback
Change-Id: Ib6abc7274281745b8374f233dce06c7f6514f2f4
Changyeon Lee [Thu, 5 Nov 2020 10:17:14 +0000 (19:17 +0900)]
e_hwc_windows: send discard feedback if commit ins't needed
Change-Id: Id2b40adfcf029a218d8268239bcf2b78296605be
Doyoun Kang [Thu, 5 Nov 2020 10:49:36 +0000 (19:49 +0900)]
e_desk: run zoom-effect only if the zoom ratio is changed
Change-Id: I2fff406e18cff36a78ad93005a0c515044b4466c
Doyoun Kang [Wed, 4 Nov 2020 11:57:25 +0000 (20:57 +0900)]
Revert "video: Destroy hwc interface explicitly when rendering is failed."
This reverts commit
35e41776c77705c2c37fee10ef7ccbbb73514f93.
Change-Id: Ia462d44af3f7905d0745fe3b442fec9772e25c5a
Doyoun Kang [Wed, 4 Nov 2020 11:56:36 +0000 (20:56 +0900)]
Revert "subsurface: Raise a protocol error about wl_subsurface.place_(above/below)."
This reverts commit
634a93f81bbafb5677918f77895d31fd64a9a165.
Change-Id: I7b5e86b9617a51c5c0ac444380495b725ebe1dd9
Doyoun Kang [Wed, 4 Nov 2020 11:56:08 +0000 (20:56 +0900)]
Revert "subsurface: Do not raise a protocol error for a reference surface as parent."
This reverts commit
29359d02eb4667384e599ba6baa0797d14f823ca.
Change-Id: I3321d170c72a97c8b80e7e1b6e794dafe5cbb01a
Doyoun Kang [Wed, 4 Nov 2020 11:55:52 +0000 (20:55 +0900)]
Revert "subsurface: Raise a protocol error for a bad parent."
This reverts commit
d3cbe02df50c847973c1ba147e0a112838af26c5.
Change-Id: Idf59aa2e6a94f6a53c24e2da4abaa161be6e6f44
Doyoun Kang [Wed, 4 Nov 2020 11:55:33 +0000 (20:55 +0900)]
Revert "subsurface: fix not inserting subsurface to pending state first."
This reverts commit
87d56cb63c49c94b9ecb25ecab4005bf4f688165.
Change-Id: If1c48b5f777c7e8aff4b237f17c2a88c782ccff1
Doyoun Kang [Wed, 4 Nov 2020 11:54:54 +0000 (20:54 +0900)]
Revert "video: Rename functions and variables more detail."
This reverts commit
76563ffde2c4b5bf0be317b40145a1e47f43890f.
Change-Id: Idd6661c970e9ff0c205e3987490bdb1f7c389e84
Doyoun Kang [Wed, 4 Nov 2020 11:54:29 +0000 (20:54 +0900)]
Revert "video: Remove unused variable."
This reverts commit
1b1659007bc040a244c98d487c443f2cc2f029fb.
Change-Id: I3041e729eb940f6eb213342301e36ce6fa0a3997
Doyoun Kang [Wed, 4 Nov 2020 11:54:02 +0000 (20:54 +0900)]
Revert "video: Do not free an instance in a handler of removing E_Client."
This reverts commit
2c80683703923f54749a81f410cea50f4d772a3b.
Change-Id: Ic2d4371635a9e4019e9390aae297c113eb08c90c
Doyoun Kang [Wed, 4 Nov 2020 11:53:31 +0000 (20:53 +0900)]
Revert "subsurface: Handles restack event only for topmost parent of sub-surface."
This reverts commit
0ce9e1e920050692e28c75cd1cfc3cc38cc0be2e.
Change-Id: I1398b077e061c5ee1bacdece7292bdcd3e43e85b
Doyoun Kang [Wed, 4 Nov 2020 11:53:10 +0000 (20:53 +0900)]
Revert "e_client: Checks if it's valid operation for sub-surface."
This reverts commit
1cf2f111f9ff9a1043cde8c0f201ee53d74ef0a4.
Change-Id: Id3b909374118cec52d862cf0ad03272c0db8f1a7
Doyoun Kang [Wed, 4 Nov 2020 11:52:08 +0000 (20:52 +0900)]
Revert "subsurface: Do not update stacking order of entire sub-surface tree."
This reverts commit
3d028b1c348ab53170b4f6e70ebe0794de14ff8d.
Change-Id: Id5f8d6ee29e289119fc107c6977b431139389664
Doyoun Kang [Wed, 4 Nov 2020 11:51:24 +0000 (20:51 +0900)]
Revert "subsurface: Remove some unnecessary internal API for sub-surface."
This reverts commit
f8193c22fa299e2eacdca44fe660545ceaa67c47.
Change-Id: Id45c14e22c74276ee1a0cc3461d8dedb4413b751
Doyoun Kang [Wed, 4 Nov 2020 11:51:00 +0000 (20:51 +0900)]
Revert "video_buffer: Do not call memcpy() with the size greater than dest."
This reverts commit
a31a94ee5394230d1d0902a30ff299a6dec919ec.
Change-Id: I4cd67474dc9dd73243d8aaf53b5309ba37c23dec
Doyoun Kang [Wed, 4 Nov 2020 11:49:20 +0000 (20:49 +0900)]
Revert "subsurface: Add a function to link sub-surface to its parent."
This reverts commit
04f8ba7a72e18f4bc7113b654a0fa9dae4cabbd2.
Change-Id: Ia6bd0fa8146a65ecec1d8cba8a5ab2f200614c2b
Doyoun Kang [Wed, 4 Nov 2020 11:45:09 +0000 (20:45 +0900)]
Revert "subsurface: fix not being able to update stack by place_below_parent."
This reverts commit
c1e727fb2bd951f4fdca2da87418d2047d5fe0ba.
Change-Id: Idba380e97acc07c733eb7fd429b572b314a13fe4
Junseok, Kim [Tue, 3 Nov 2020 04:30:14 +0000 (13:30 +0900)]
e_policy_visibility: check iconify_by_client during uniconify children
Change-Id: Ibbe212d5b247cbdbcb3feb81fb4bc7835b758bcd
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
Junseok, Kim [Mon, 2 Nov 2020 11:54:55 +0000 (20:54 +0900)]
e_policy_visibility: check iconify_by_client during activate children
Change-Id: I81ab7785bf34529e137172c755cd1cb377659c44
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
SooChan Lim [Tue, 3 Nov 2020 02:27:50 +0000 (11:27 +0900)]
Revert "e_client: use e_client_cdata_get instead of using ec->comp_data."
This reverts commit
7f6b3211a4fd1b6b9ea2d76ae0264fdba3156f4a.
Change-Id: I9cc60c45d2d11b9bbd57942672dd3ea7ac7656ba
SooChan Lim [Tue, 3 Nov 2020 02:25:32 +0000 (11:25 +0900)]
Revert "e_comp_wl_shell: do not check if cdata is null"
This reverts commit
1678a6c3e4adb923f28809dffd51f60e74efe4e7.
Change-Id: I7baef2c1f5ac53918d00628fc0d98bd716a7692c
SooChan Lim [Tue, 3 Nov 2020 02:25:20 +0000 (11:25 +0900)]
Revert "e_client: use e_client_mapped_get() instead of cdata->mapped."
This reverts commit
bb8e727c1a0d539bc179bf274096abf42ce107b6.
Change-Id: Ifebdcb01720bfcf20f178761b857941433fa17dd
SooChan Lim [Tue, 3 Nov 2020 02:24:52 +0000 (11:24 +0900)]
Revert "e_client: use e_client_first_mapped_get() function instead of ec->first_mapped"
This reverts commit
a3c87d6c955548848b2a3f8351c9f4ffde4c8915.
Change-Id: I7673e23f79be45238c1ac9dea07eb01d4badc047
SooChan Lim [Tue, 3 Nov 2020 02:24:33 +0000 (11:24 +0900)]
Revert "e_client: use e_client_mapped_set() function"
This reverts commit
f5e6e1fc8f2a65774233529ced93d06ab5d191a5.
Change-Id: Id73e777960fe9a46dffa8dbcfb81d578873e49fb
SooChan Lim [Tue, 3 Nov 2020 02:23:48 +0000 (11:23 +0900)]
Revert "subsurface: fix mistake caused by previous patch."
This reverts commit
a1cc2617a4c8c9d38e25fe5c5603a41e60a39ef8.
Change-Id: Ibd488f567dab0edba993053ae7a46690997c6479
SooChan Lim [Tue, 3 Nov 2020 02:23:42 +0000 (11:23 +0900)]
Revert "subsurface: fix unreachable code."
This reverts commit
34419db7788634f34bb3e819dfb8ba6c4a46a1d3.
Change-Id: I2c4c286a74de94c1782c8d9391ff6255a6ee2584
SooChan Lim [Tue, 3 Nov 2020 02:23:08 +0000 (11:23 +0900)]
Revert "e_comp_wl_input: check ec's cdata before accessing it"
This reverts commit
59202013a86d14b7eee5a38eb3927d63f59b6716.
Change-Id: I59f0d3b63cf26b755b9c457bb07205919531a0f3
SooChan Lim [Tue, 3 Nov 2020 02:23:02 +0000 (11:23 +0900)]
Revert "e_policy_wl: fix resource leak"
This reverts commit
55306931a567e31a843c766a151500cb7aa95e5e.
Change-Id: I053c64ad5214ec9b439a286073bc3d367fadc4ad
SooChan Lim [Tue, 3 Nov 2020 02:22:56 +0000 (11:22 +0900)]
Revert "e_comp_wl: remove unreached code."
This reverts commit
386494e639ba141a7a47f2cc11eb522bb5615c69.
Change-Id: I729e624264299e913f059b46c3e449f0d24bb12b
SooChan Lim [Tue, 3 Nov 2020 02:22:51 +0000 (11:22 +0900)]
Revert "e_client: fix the dereferenced data"
This reverts commit
b40e2c03385173a36e20563e39e900c10b5fc08c.
Change-Id: Ie726329b3c346114f6d84ba4a2865e0611c08073
SooChan Lim [Tue, 3 Nov 2020 02:22:49 +0000 (11:22 +0900)]
Revert "e_comp_object: fix the unreached code"
This reverts commit
51a780029c06abc0b6777ae3bfeaacdea660bd3b.
Change-Id: I0d2cad881f585a45b38fc01f3095494fcc97b171
SooChan Lim [Tue, 3 Nov 2020 02:22:46 +0000 (11:22 +0900)]
Revert "e_xdg_shell_v6: fix the dereferenced data"
This reverts commit
51784681bdb849b97982f0335dd197c6715e467c.
Change-Id: I4a45a7685457b42096ca9dcde09aeeed319867fb
SooChan Lim [Tue, 3 Nov 2020 02:22:44 +0000 (11:22 +0900)]
Revert "e_policy_wl: add null check code"
This reverts commit
28a0b5ece733d06ca2540c3ede8edd3f59ea1338.
Change-Id: I91a3eeac3dff2ba0100964d41124e9ebd5e31f91
SooChan Lim [Tue, 3 Nov 2020 02:22:42 +0000 (11:22 +0900)]
Revert "e_xdg_shell: add null check code"
This reverts commit
be3a76a570cf8794cfae96528b3cfccf320269db.
Change-Id: Ibfacc3c412b1b1a81433b2fee878234499080ab6
Doyoun Kang [Mon, 2 Nov 2020 10:00:12 +0000 (19:00 +0900)]
e_xdg_shell: add null check code
Change-Id: Icfb405598ca852255e7cac356db37518aaaafb29
Doyoun Kang [Mon, 2 Nov 2020 09:59:52 +0000 (18:59 +0900)]
e_policy_wl: add null check code
Change-Id: I61a5bd5b9dbdfc1cf012a2d2c02acaa75b77b139
SooChan Lim [Mon, 2 Nov 2020 09:02:01 +0000 (18:02 +0900)]
e_xdg_shell_v6: fix the dereferenced data
Change-Id: Iac5e1c349df5930d8411b23f7915c5f55e57cb56
SooChan Lim [Mon, 2 Nov 2020 08:53:42 +0000 (17:53 +0900)]
e_comp_object: fix the unreached code
Change-Id: Ib0ed0c1461d8a7efe44f8b0de5c667c0d124b160
SooChan Lim [Mon, 2 Nov 2020 08:51:58 +0000 (17:51 +0900)]
e_client: fix the dereferenced data
Change-Id: I2bc1cfe11eaa80b96b27086dfffd194c934e5b90
SooChan Lim [Mon, 2 Nov 2020 08:48:26 +0000 (17:48 +0900)]
e_comp_wl: remove unreached code.
Change-Id: Ia614dc818a09fe3034b8fa1834b450282a592194
Doyoun Kang [Mon, 2 Nov 2020 08:35:45 +0000 (17:35 +0900)]
e_policy_wl: fix resource leak
Change-Id: Id581a191ddc29a8693c63e0bbdd89b7767190322
Doyoun Kang [Mon, 2 Nov 2020 08:26:32 +0000 (17:26 +0900)]
e_comp_wl_input: check ec's cdata before accessing it
Change-Id: I8795c6fbd2e7f67987c659eb9f71afba85816e92
Doyoun Kang [Mon, 2 Nov 2020 08:07:41 +0000 (17:07 +0900)]
e_policy_wl: raise window which is not set lock_user_stacking in e_policy_wl_activate
Change-Id: I3f541f1bcf3e1e473e7a7ffc3d4eaf43d94ea1ad
Seunghun Lee [Fri, 30 Oct 2020 03:08:10 +0000 (12:08 +0900)]
subsurface: fix not being able to update stack by place_below_parent.
This problem was caused by the following patch I made for the reason that
described in the commit message.
===
commit
3d028b1c348ab53170b4f6e70ebe0794de14ff8d
Author: Seunghun Lee <shiin.lee@samsung.com>
Date: Thu Oct 22 13:41:18 2020 +0900
subsurface: Do not update stacking order of entire sub-surface tree.
===
The stacking order of sub-surface should be actually updated when state
of its immediate parent is applied according to the wl_subsurface
description.
However, 'tizen_policy.subsurface_place_below_parent' seems not to be
designed like that. So, just let 'tizen_policy.subsurface_place_below_parent'
update the stacking order immediately.
Otherwise I think this protocol can't support backward comatibility.
Clients of wayland server must be assuming that changing stacking order by
this protocol will be applied regardless of state of its parent.
Change-Id: I11a7644d16431f612a5674851a40964a48d97bbf
Seunghun Lee [Fri, 30 Oct 2020 04:13:37 +0000 (13:13 +0900)]
subsurface: fix unreachable code.
this problem caused by mistake in previous commit.
Change-Id: I8e8d7dbe42c96817df853b8d8d290efa90cf63f0
Seunghun Lee [Fri, 30 Oct 2020 02:19:54 +0000 (11:19 +0900)]
subsurface: fix mistake caused by previous patch.
It has to raise a protocol error to sub-surface, not its sibling surface.
Change-Id: I6bbe55801807fd1a35eb45d17ff9910e87086c14
Doyoun Kang [Thu, 29 Oct 2020 06:00:14 +0000 (15:00 +0900)]
e_policy_visibility: check above's rot.pending_show flag in _e_vis_ec_above_visible_type
Change-Id: I61fdf81684bb6caa6754a7b85e33364753d34b0d
SooChan Lim [Thu, 29 Oct 2020 07:40:45 +0000 (16:40 +0900)]
e_comp_wl_tizen_hwc: add ec to the log
Change-Id: I71cb1af5061e460e9a66283b216185bfb332113e
SooChan Lim [Thu, 29 Oct 2020 03:26:40 +0000 (12:26 +0900)]
e_client: use e_client_mapped_set() function
Change-Id: I473c8bf1c97de00bbe67ed82f6e13af985158914
SooChan Lim [Thu, 29 Oct 2020 03:19:04 +0000 (12:19 +0900)]
e_client: add e_client_mapped_set() function
Change-Id: Iecdcff771d1be8fba9f1605ae65dc0f8d521f2f5
SooChan Lim [Thu, 29 Oct 2020 03:14:22 +0000 (12:14 +0900)]
e_client: use e_client_first_mapped_get() function instead of ec->first_mapped
Change-Id: I1ad41755ef726e3bb99501a4b26689df4252328e
SooChan Lim [Thu, 29 Oct 2020 00:54:00 +0000 (09:54 +0900)]
e_client: use e_client_mapped_get() instead of cdata->mapped.
use e_client_mapped_get() api to avoid the direct access of ec->cdata->mapped
Change-Id: If3def60bcd4e6bedd371b6c5cc53885cf61652cd
SooChan Lim [Thu, 29 Oct 2020 00:44:09 +0000 (09:44 +0900)]
e_client: add e_client_mapped_get() function.
Change-Id: I01604ba714dc2726ccc389a6e011ab213cc13318
SooChan Lim [Thu, 29 Oct 2020 00:54:21 +0000 (09:54 +0900)]
e_comp_wl_shell: do not check if cdata is null
Change-Id: I49014c62752ef010f646f44eaccbacf08231ea9b
SooChan Lim [Thu, 24 Sep 2020 01:07:45 +0000 (10:07 +0900)]
e_comp_wl: change the variable name of E_Comp_Wl_Data type from cdata to wl_cdata
E20 is going to use the naming rule for E_Comp_Wl_Data and E_Comp_Client_Wl_Data below.
The local var_name for E_Comp_Wl_Data is wl_cdata.
The local var_name for E_Comp_Client_Wl_Data is cdata.
Change-Id: I8a7051d9829670ea5bac4252c64a2859586160a2
SooChan Lim [Thu, 24 Sep 2020 00:00:44 +0000 (09:00 +0900)]
e_client: use e_client_cdata_get instead of using ec->comp_data.
E20 can gets the E_Comp_Wl_Client_Data of E_Client by e_client_cdata_get function.
Change-Id: Ib4b825871ad82251384dc2d44b9a16b5b6e2a498
SooChan Lim [Wed, 23 Sep 2020 23:57:11 +0000 (08:57 +0900)]
e_client: add e_client_cdata_get function
The e_client provides e_client_cdata_get() function.
A user can get the ec->comp_data with this function.
Change-Id: I2c5206d4b2d311d283303478a66016cc1cacb7ca
SooChan Lim [Wed, 23 Sep 2020 23:52:42 +0000 (08:52 +0900)]
e_pixmap: use E_Comp_Wl_Client_Data instead of E_Comp_Client_Data.
E_Comp_Client_Data will be deprecated.
Change-Id: Ia9b1b25114fbae8cb4c52b5c94109f66dc5f7871
SooChan Lim [Wed, 23 Sep 2020 23:47:26 +0000 (08:47 +0900)]
e_client: use E_Comp_Wl_Client_Data instead of E_Comp_Client_Data.
E_Comp_Client_Data will be deprecated.
Change-Id: I6a9193edef91cc4731dd1a6784ff07d485538ed7
SooChan Lim [Wed, 23 Sep 2020 23:43:47 +0000 (08:43 +0900)]
e_comp: E_Comp_Wl_Client_Data is used instead of E_Comp_Client_Data.
E_Comp_Client_Data will be deprecated. E_Comp_Client_Data is the same definition as E_Comp_Wl_Client_Data.
Use E_Comp_Wl_Client_Data intead of this.
Change-Id: I330f131efc1982fa8b65add043e32a32166bb42e
Junkyeong Kim [Thu, 8 Oct 2020 08:06:20 +0000 (17:06 +0900)]
e_output: set output's dpms state to off if silent boot mode
Change-Id: Ib178fc8631b5763c0b31460f5c93a7951e59015d
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Junkyeong Kim [Wed, 7 Oct 2020 11:09:42 +0000 (20:09 +0900)]
video: do not use pp if tdm pp does not support csc or rotation
Change-Id: I29e80bfc7ee8b81e29820abe05fee3fc45abf33b
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Junseok, Kim [Wed, 28 Oct 2020 09:21:09 +0000 (18:21 +0900)]
e_policy_wl: check E_Appinfo is already exist when appinfo_register_pid
Change-Id: I6db38984b178a11fc84a3bb798d09d03175c507b
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
Junseok, Kim [Tue, 27 Oct 2020 07:35:38 +0000 (16:35 +0900)]
e_appinfo: Delete E_Appinfo at compositor unbind instead of tzpol, tzlaunch_appinfo unbind.
The tizen_policy and tizen_launch_appinfo unbind can called by client when the client launching.
Since the E_Appinfo is removed at this time and re-created later, the base_output_resolution could not work properly.
For fix this issue, delete E_Appinfo when the compositor unbind callback called.
And added the E_Appinfo_Owner for recognize the E_Appinfo is created by client or server.
The E_Appinfo that created by client, will be destroyed at deregister_pid/appid request callback.
The others that created by server, will be destroyed at compositor unbind.
Change-Id: Id97ab328bc7a8a7ff97455d33f8b72c720b3b56b
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
Junseok, Kim [Tue, 27 Oct 2020 07:34:26 +0000 (16:34 +0900)]
e_appinfo: remove duplicated E_Appinfo when pid/appid set
Change-Id: I5b2f2e20dcf566a54e4f25532ededdf8cbb19e8e
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
Changyeon Lee [Tue, 27 Oct 2020 07:56:33 +0000 (16:56 +0900)]
e_hwc_windows: support TDM_HWC_COMMIT_INTERVAL_VBLANK
if tdm_backend set TDM_HWC_COMMIT_INTERVAL_VBLANK, enlightenment call
tdm_hwc_commit per vblank.
Change-Id: I34e8689aab1f463797c6eb2b9ee733f17ebc8c11
Changyeon Lee [Mon, 12 Oct 2020 06:42:16 +0000 (15:42 +0900)]
e_comp_wl_tbm: use capturable buffer at capture to file
Change-Id: I13b28b64196d58fe066e6ed82dbdd3c78e72172b
Changyeon Lee [Mon, 12 Oct 2020 06:41:24 +0000 (15:41 +0900)]
e_comp_wl_tbm: add module func set/unset
add capturable_buffer_get func and
e_comp_wl_tbm_capturable_buffer_get api
Change-Id: I5b95351b514858e44d807513bbfe5f99a9ff2890
Changyeon Lee [Thu, 8 Oct 2020 05:23:41 +0000 (14:23 +0900)]
e_hwc_windows: don't commit after dpms is set OFF
Change-Id: I83605aa4d979e73090f9c406947b88b30383950b
Seunghun Lee [Tue, 27 Oct 2020 02:27:16 +0000 (11:27 +0900)]
subsurface: Add a function to link sub-surface to its parent.
no functional change.
Change-Id: Ic683c270587463be3640ff93a278f43daa7c572a
Seunghun Lee [Mon, 26 Oct 2020 06:36:43 +0000 (15:36 +0900)]
video_buffer: Do not call memcpy() with the size greater than dest.
Calling memcpy() with the size greater than dest may lead to a segfault,
since this causes a buffer overrun.
The pitch size of src is not guaranteed to have the same size as dest.
So it should use min value.
Change-Id: I1565783a416ba9a6367b4a34b75c759a514f8572
Seunghun Lee [Thu, 22 Oct 2020 09:01:47 +0000 (18:01 +0900)]
subsurface: Remove some unnecessary internal API for sub-surface.
If stacking order of sub-surfaces changes, there is no choice but to
update stacking order of composite objects associated with sub-surfaces.
So stacking order of composite objects can be updated when order is
applied. By doing this, internal API for re-stacking composite objects
and below_obj can be removed.
Change-Id: I26a305078ad2fd708e7dcba0ef154077a7829876
Seunghun Lee [Thu, 22 Oct 2020 04:41:18 +0000 (13:41 +0900)]
subsurface: Do not update stacking order of entire sub-surface tree.
Accoding to the description of wl_subsurface, stacking order of the
parent and its sub-surfaces is applied when the parent surface's
wl_surface state is applied, regardless of the sub-surface's mode.
However enlightenment updates stacking order of the topmost parent and
its sub-surfaces when any wl_surface(in the tree) state was applied.
This is the point that is different with the description.
This patch corrects it.
Here is a possible problem without this patch.
Let's say there are surfaces which make up the tree of sub-surfaces:
0
/ \
1(desync) 2
/ \ / \
3 4 5 6
And let's say client writes wayland protocol like this:
wl_subsurface_place_below(4, 3)
wl_subsurface_place_below(2, 1)
wl_surface_commit(1)
wl_display_dispatch(wl_display)
It should only place surface 4 under the surface 3, but should not place
surface 2 under the surface 1 because surface 0's state isn't applied
yet. Without this patch, this code will place surface 2 under the
surface 1 as well.
Change-Id: Icacf0ea171ac898a66c7afa33727be93934544b3
Seunghun Lee [Tue, 20 Oct 2020 09:26:56 +0000 (18:26 +0900)]
e_client: Checks if it's valid operation for sub-surface.
For now wl_surface and wl_subsurface are all mapped to e_client.
e_client_stack_above/below and e_client_raise/lower are for changing
stacking order of e_client as its name says.
In this reason, the functions related to stacking order in e_client
are responsible for checking if it's valid operation for sub-surface
and updating stacking order of sub-surfaces.
Change-Id: I29a3524856ac4cc0151cbaf1221e9bc003e2216a
Seunghun Lee [Mon, 19 Oct 2020 11:15:23 +0000 (20:15 +0900)]
subsurface: Handles restack event only for topmost parent of sub-surface.
This patch removes a handler of restack event in e_comp_wl, and adds it
for topmost parent of sub-surface.
Because it's not necessary to handle restack event for sub-surface.
The reason is as follow.
1. Sub-surface can be re-stacked only by a request from wl_client. In
other words, it shouldn't be re-stacked by compositor policy.
2. A topmost parent of sub-surface can be re-stacked only by compositor
policy.
For these reason, it's sufficient for sub-surface implementation to add
a handler of restack event for topmost parent.
Change-Id: I6874425fd864c83039911dcf4ece75e5d2c8a79b
Seunghun Lee [Wed, 14 Oct 2020 04:55:48 +0000 (13:55 +0900)]
video: Do not free an instance in a handler of removing E_Client.
Do not free an instance associated with tizen_video_object in a handler
of removing E_Client. The instance should be removed with wl_resource.
Change-Id: Ie34c7aa9bdc40f813829cdf8dcf39b0035aed5b8
Seunghun Lee [Tue, 6 Oct 2020 05:39:10 +0000 (14:39 +0900)]
video: Remove unused variable.
Change-Id: Ide0dbe776f9f904e9dcb490675caef7183180594