subsurface: Add a hook point for SUBSURFACE_COMMIT_TO_CACHE. 89/242189/4
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 13 Aug 2020 20:24:59 +0000 (05:24 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 1 Sep 2020 01:17:14 +0000 (01:17 +0000)
commit016cf2b2b09d2bba4f43a44a51004088573729d7
treeeaec3e7addffdc0bd1d9ba37db10a6cae0105a7d
parent8943e7510a4eb1b4f4c37d01a37983120eb38a10
subsurface: Add a hook point for SUBSURFACE_COMMIT_TO_CACHE.

This patch introduces a hook point for SUBSURFACE_COMMIT_TO_CACHE.
A function given to e_comp_wl_hook_add() with this hook point will be
called when changes of subsurface is committed to cache.
It will give a chance for others to cache its changes by itself.

An implementation of tizen_viewport as an extension of wayland protocol
for tizen will use this hook point for caching its changes in a
future patch.

NOTE:
Modules which listen to this hook event should apply its cached state to
current state first when wl_surface.commit occurs. Yet when there is no
cached state at that moment, it should apply pending state.

COMMIT TO CACHE
pending -> cache

wl_surface.commit
cache ? cache -> current : pending -> current

Change-Id: I35f908881d8ff06a40d90b4d78b381d31b259ef1
src/bin/e_comp_wl.h
src/bin/e_comp_wl_subsurface.c