Commit Graph

1180 Commits

Author SHA1 Message Date
Vincent Wei
2622843202 tune argument name: rc -> rc_dirty of on_dirty_screen 2020-02-05 11:05:41 +08:00
Vincent Wei
d480eb5cf0 move __mg_is_valid_layer to server.h and make it inline 2020-02-04 21:46:29 +08:00
Vincent Wei
37de21cc42 tune calls of compositor operations 2020-02-04 21:46:03 +08:00
Vincent Wei
e74b13f462 continue to implement the fallback compositor 2020-02-04 21:45:09 +08:00
Vincent Wei
0c40391322 travel all window znodes on all layers 2020-02-04 21:44:27 +08:00
Vincent Wei
dfe51d7b26 new inline functions: __mg_is_valid_layer and __mg_get_layer_from_zi 2020-02-04 21:43:45 +08:00
Vincent Wei
ef44119c2d tune the operations of CompositorOps 2020-02-04 21:43:06 +08:00
Vincent Wei
3d6eca8258 call on_dirty_rect 2020-02-04 12:11:16 +08:00
Vincent Wei
bdc1231a41 check available of purge_ppp_data and purge_win_data 2020-02-04 12:09:54 +08:00
Vincent Wei
b0d434b857 initial implementation of on_dirty_rect 2020-02-04 12:09:32 +08:00
Vincent Wei
53ab99def2 Tune CompositorOps: new operation on_dirty_rect, on_moving_to_top -> on_raising_win 2020-02-04 12:08:40 +08:00
Vincent Wei
464adfa3e2 Under compositing schema, we do not allocate mask rectangles
for round corners. Instead, we get the region of window znode
in ServerGetWinZNodeRegion.
2020-02-04 10:37:52 +08:00
Vincent Wei
217e5971b4 new inline function: __mg_get_nr_idle_slots (moved from desktop.c) 2020-02-04 10:37:24 +08:00
Vincent Wei
07a790e284 debug fallback compositor: on_dirty_ppp 2020-02-03 22:32:43 +08:00
Vincent Wei
2f1f520151 _REGION_DEBUG -> _DEBUG_REGION 2020-02-03 22:32:01 +08:00
Vincent Wei
5a344f8102 _REGION_DEBUG -> _DEBUG_REGION 2020-02-03 22:31:47 +08:00
Vincent Wei
f2e476b9ff debug ServerGetPopupMenuZNodeRegion 2020-02-03 22:30:37 +08:00
Vincent Wei
2a38ea9695 fix typos 2020-02-03 22:29:28 +08:00
Vincent Wei
11872c1288 initial version of on_dirty_ppp 2020-02-03 17:58:13 +08:00
Vincent Wei
61b4b4adf9 check shared_header 2020-02-03 17:57:29 +08:00
Vincent Wei
930f99f151 check dirty_info instead of shared_header for update rects 2020-02-03 16:24:05 +08:00
Vincent Wei
4a54b94e08 tune 2020-02-03 16:08:36 +08:00
Vincent Wei
d1f499a8e0 initialize update_region of cursor surface 2020-02-03 16:08:03 +08:00
Vincent Wei
b8963ba3b1 always create a new memdc for popup menus 2020-02-03 16:07:20 +08:00
Vincent Wei
e4bb441f1d call SyncUpdateDC after handle use input events 2020-02-03 16:06:10 +08:00
Vincent Wei
ed9ce0b065 change prototype of purge_win_data 2020-02-03 16:05:14 +08:00
Vincent Wei
7f8a7c5f10 tune description words 2020-02-03 16:04:50 +08:00
Vincent Wei
5d3d051d6b use dirty_info instead of shared_surfae 2020-02-03 11:55:47 +08:00
Vincent Wei
bdf5eafad8 convert_region_to_rects -> __mg_convert_region_to_rects; use dirty_info instead of shared_header 2020-02-03 11:55:18 +08:00
Vincent Wei
3ea00c7752 allocate and free dirty_info for general memory surafce 2020-02-03 11:54:11 +08:00
Vincent Wei
2cef670adc initialize dirty_info 2020-02-03 11:53:25 +08:00
Vincent Wei
84f1da38c1 initialize dirty_info to NULL 2020-02-03 11:53:05 +08:00
Vincent Wei
48f0bd1426 use dirty_info instead of shared_header 2020-02-03 11:52:46 +08:00
Vincent Wei
12e4d7bcf5 introduce GAL_DirtyInfo structure to maintain dirty info of memory dc for both shared and no shared surface 2020-02-03 11:52:19 +08:00
Vincent Wei
8f575fd887 declare __mg_convert_region_to_rects 2020-02-03 11:51:17 +08:00
Vincent Wei
fa9aacf3af rename __mg_compsor_check_znodes to __mg_composite_dirty_znodes 2020-02-02 22:36:17 +08:00
Vincent Wei
f8503f6943 support for private data of z-node; implement ServerSetWinZNodePrivateData and ServerSetPopupMenuZNodePrivateData 2020-02-02 22:35:51 +08:00
Vincent Wei
3560f58248 initialize priv_data of z-node to NULL 2020-02-02 22:35:09 +08:00
Vincent Wei
43fa4603d5 support of private data of z-node 2020-02-02 22:34:40 +08:00
Vincent Wei
fc514cd4c4 support of private data of z-node 2020-02-02 22:34:15 +08:00
Vincent Wei
07585edb1e support for private data of z-node; new APIS: ServerSetWinZNodePrivateData and ServerSetPopupMenuZNodePrivateData 2020-02-02 22:33:37 +08:00
Vincent Wei
fddf3bdc45 implement ServerGetWinZNodeRegion and ServerGetPopupMenuZNodeRegion 2020-02-02 16:59:42 +08:00
Vincent Wei
5983ad2db8 message strings for new window messages 2020-02-02 16:58:58 +08:00
Vincent Wei
7ce2eea112 add RADIUS_WINDOW_CORNERS and RADIUS_POPUPMENU_CORNERS constants 2020-02-02 16:58:32 +08:00
Vincent Wei
4d4d18499c add Since 4.2.0 for new window styles and window messages 2020-02-02 16:57:36 +08:00
Vincent Wei
54bc586e39 declare ServerGetWinZNodeRegion and ServerGetPopupMenuZNodeRegion 2020-02-02 16:56:48 +08:00
Vincent Wei
14d020cccf cleanup: convert tab to spaces and trim tail spaces 2020-02-02 10:53:31 +08:00
Vincent Wei
8dbe2c63f1 cleanup code, see cleanup-code.sh 2020-02-02 10:46:29 +08:00
Vincent Wei
d7c398fd4d use semaphore set instead of posix semaphore 2020-02-01 22:54:42 +08:00
Vincent Wei
3870cd4ccb request handlers: alloc_sem_for_shared_surf and free_sem_for_shared_surf; enhance del_global_res to work with semaphore 2020-02-01 21:47:51 +08:00