Commit Graph

1107 Commits

Author SHA1 Message Date
Vincent Wei
693292d8bf initialize dirty_rcs to NULL for allocated new z-nodes 2020-01-22 11:49:26 +08:00
Vincent Wei
d2be775e37 implement __compsor_check_znodes 2020-01-22 11:48:39 +08:00
Vincent Wei
84d32199a6 tune fallback compositor 2020-01-22 11:48:19 +08:00
Vincent Wei
b4a53b64c5 add dirty_age, nr_dirty_rcs, and dirty_rcs fields in ZORDERNODE 2020-01-22 11:47:52 +08:00
Vincent Wei
db321712ac add dependent headers. 2020-01-22 11:47:13 +08:00
Vincent Wei
f601edf7a5 cleanup and add dependent headers. 2020-01-22 11:46:50 +08:00
Vincent Wei
3ed116b53b add dirty_age, nr_dirty_rcs, and dirty_rcs fields in ZNODEHEADER for compositing schema; lock shared surface in ServerGetZNodeHeader and ServerGetPopupMenuZNodeHeader if specified and return the dirty rects info; declare ServerReleaseZNodeHeader and ServerReleasePopupMenuZNodeHeader; tune compositor operations: on_dirty_ppp, on_dirty_win, and on_dirty_wpp 2020-01-22 11:46:18 +08:00
Vincent Wei
280b55ac7c mark deprecated 2020-01-22 09:10:32 +08:00
Vincent Wei
02115fb258 use mg_slice_alloc0 and mg_slice_free 2020-01-22 09:10:05 +08:00
Vincent Wei
3289d74a83 cleanup 2020-01-22 09:09:26 +08:00
Vincent Wei
ba29a38202 interset with screen before calling GAL_BlitSurface 2020-01-22 08:39:53 +08:00
Vincent Wei
17656af74a move GAL_IntersectRect from surface.c to newgal.h; galrect_2_rect -> GAL_Rect2RECT and move it to newgal.h; add RECT2GAL_Rect 2020-01-22 08:39:17 +08:00
Vincent Wei
ddaa8cd3a0 debug cursor showing 2020-01-21 20:03:01 +08:00
Vincent Wei
2d9c6afda8 cleanup 2020-01-21 20:01:41 +08:00
Vincent Wei
a8bd261aec cleanup 2020-01-21 18:31:56 +08:00
Vincent Wei
0e0319a737 cleanup 2020-01-21 18:31:42 +08:00
Vincent Wei
9874a9385f remove MAX_CURSORWIDTH and MAX_CURSORHEIGHT 2020-01-21 18:30:53 +08:00
Vincent Wei
2de5a41851 use get_sem_key_for_layers instead of get_sem_key 2020-01-21 17:39:55 +08:00
Vincent Wei
d5d7fff646 return before notsupport in GAL_UpdateRects 2020-01-21 17:39:24 +08:00
Vincent Wei
96a702642d tune GAL_SetCursor and GAL_MoveCursor 2020-01-21 17:38:30 +08:00
Vincent Wei
b0e780dfd8 use surface width and height for screen width and height when it is the server 2020-01-21 17:38:07 +08:00
Vincent Wei
be2f3a2546 call SyncUpdateDC 2020-01-21 17:37:14 +08:00
Vincent Wei
7ed4d9244b enhance kernel_IsOnlyMe to remove old semaphore sets; use flock to check IsOnlyMe 2020-01-21 17:36:58 +08:00
Vincent Wei
b1d9b3eb4f cleanup 2020-01-21 17:35:40 +08:00
Vincent Wei
5b55d1b7ac cleanup 2020-01-21 17:35:30 +08:00
Vincent Wei
a01908e56f support for software cursor for compositing schema 2020-01-21 17:35:18 +08:00
Vincent Wei
528ed6589d add inline functions: get_shm_key_for_system, get_sem_key_for_system, and get_sem_key_for_layers 2020-01-21 17:34:44 +08:00
Vincent Wei
d595ffe76f add a flag to video info: hw_cursor 2020-01-21 17:34:04 +08:00
Vincent Wei
ffb6112e25 mark HDC_SCREEN as a memory dc for compositing schema; implement SyncUpdateSurface 2020-01-21 14:38:51 +08:00
Vincent Wei
6ff853f735 lock/unlock surface when syncupdate shared surface 2020-01-21 14:38:14 +08:00
Vincent Wei
c5b83c9498 declare SyncUpdateSurface 2020-01-21 14:37:33 +08:00
Vincent Wei
82497a4032 fix conditional compilation errors 2020-01-21 12:20:04 +08:00
Vincent Wei
dc1d0a8016 fix conditional compilation errors 2020-01-21 12:16:24 +08:00
Vincent Wei
d4d9fe3bc4 Call GAL_UpdateRect for shared surfaces when leaving drawing 2020-01-21 12:11:39 +08:00
Vincent Wei
22799cda37 use IS_SCREEN_SURFACE to check whether hide/show cursor in BitBlt 2020-01-21 12:10:53 +08:00
Vincent Wei
fe22d61639 Tune GAL_UpdateRects for shared surfaces 2020-01-21 12:10:11 +08:00
Vincent Wei
44cea5b587 init video, dirty_age, nr_dirty_rcs to zero 2020-01-21 12:08:38 +08:00
Vincent Wei
947cde2e9b tune kernel_ShowCursorForGDI for compositing schema 2020-01-21 12:08:07 +08:00
Vincent Wei
4dec634bd9 add nr_dirty_rcs field and use unsigned int for dirty_age 2020-01-21 12:07:25 +08:00
Vincent Wei
21866051b5 add macro: IS_SCREEN_SURFACE 2020-01-21 12:06:53 +08:00
Vincent Wei
10c69afbf7 define NR_DIRTY_RECTS to 16 2020-01-21 12:06:31 +08:00
Vincent Wei
733d1c3377 lock_mousemove_sem -> LOCK_MOUSEMOVE_SEM, unlock_mousemove_sem -> UNLOCK_MOUSEMOVE_SEM 2020-01-21 10:39:19 +08:00
Vincent Wei
4f1527c898 lock_draw_sem -> LOCK_DRAW_SEM; unlock_draw_sem -> UNLOCK_DRAW_SEM 2020-01-21 10:38:49 +08:00
Vincent Wei
fc42d28f65 remove unnecessary compilation conditions 2020-01-21 10:38:20 +08:00
Vincent Wei
4aa7904db7 tune implementation of mg_InitScreenDC; remove unnecessary compilation conditions 2020-01-21 10:37:28 +08:00
Vincent Wei
805c7f5bb2 define __mg_switch_away and cleanup 2020-01-21 10:36:13 +08:00
Vincent Wei
8e6336d2f3 cleanup. This is file is marked deprecated 2020-01-21 10:35:34 +08:00
Vincent Wei
6440db4446 reflect the change of mg_InitScreenDC 2020-01-21 10:34:49 +08:00
Vincent Wei
e0c4874bb9 move definitaion of __mg_layer to src/newgal/video.c 2020-01-21 10:33:47 +08:00
Vincent Wei
be051b59ea move definitaion of __mg_layer to src/newgal/video.c 2020-01-21 10:33:34 +08:00