From 615d1e72d338023ec2663167dd1840cb10ea823a Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sun, 15 Mar 2020 11:55:09 +0800 Subject: [PATCH] add real_name and shadow_name for double buffering --- src/newgal/drm/drmvideo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/newgal/drm/drmvideo.h b/src/newgal/drm/drmvideo.h index 0b9dd640..e44dfb35 100644 --- a/src/newgal/drm/drmvideo.h +++ b/src/newgal/drm/drmvideo.h @@ -73,11 +73,11 @@ typedef struct GAL_PrivateVideoData { #else /* defined _MGSCHEMA_COMPOSITING */ /* When double buffering supported, the real surface represents the ultimate * scan-out frame buffer, and the shadow screen represents the rendering - * surface. When double buffering disabled, both are NULL. */ + * surface. When double buffering disabled, shadow_screen is NULL. */ GAL_Surface *real_screen, *shadow_screen; - /* the global name of the surface buffer */ - uint32_t buff_name; + /* the global names of real screen and shadow screen */ + uint32_t real_name, shadow_name; #endif /* not defined _MGSCHEMA_COMPOSITING */ char dev_name[LEN_DEVICE_NAME + 1];