Tune layout of struct _SharedSurfaceHeader; Change interface of GetWindowSharedSurfaceFD()

This commit is contained in:
Vincent Wei
2023-08-29 12:50:58 +08:00
parent 50aafa3faa
commit 96ecf5e9b7
4 changed files with 31 additions and 20 deletions
+3 -4
View File
@@ -1905,11 +1905,10 @@ MG_EXPORT BOOL GUIAPI LockSharedSurfaceIfDirty (HSURF surf,
/**
* \fn BOOL GUIAPI UnlockSharedSurface (HSURF surf, BOOL clear_dirty)
* \brief Unocks the shared surface and clears the dirty information.
* \brief Unlocks the shared surface and clears the dirty information.
*
* This function compares the dirty age of the shared surface with the value
* containing in \a dirty_age, and lock the shared surface if it has
* a larger dirty age value.
* This function unlocks the shared surface \a surf, and clears its dirty
* information if \a clear_dirty is TRUE.
*
* \param surf The handle to the shared surface.
* \param clear_dirty A boolean value indicates whether to clear the dirty
+4 -2
View File
@@ -7238,7 +7238,8 @@ MG_EXPORT BOOL GUIAPI SetMainWindowGestureFlags (HWND hWnd, DWORD dwFlags);
#ifdef _MGSCHEMA_COMPOSITING
/**
* \fn int GUIAPI GetWindowSharedSurfaceFD (HWND hwnd)
* \fn int GUIAPI GetWindowSharedSurfaceFD (HWND hwnd, size_t *map_size,
* DWORD *flags)
* \brief Gets the file descriptor of the surface buffer for a window or
* the main window it locates.
*
@@ -7258,7 +7259,8 @@ MG_EXPORT BOOL GUIAPI SetMainWindowGestureFlags (HWND hWnd, DWORD dwFlags);
*
* Since 5.0.13
*/
MG_EXPORT int GUIAPI GetWindowSharedSurfaceFD (HWND hWnd);
MG_EXPORT int GUIAPI GetWindowSharedSurfaceFD (HWND hWnd, size_t *map_size,
DWORD *flags);
/**
* \fn BOOL GUIAPI SetMainWindowCompositing (HWND hWnd,