[cogl/wip/rib/frame-synchronization: 1/5] glx: refer to head of info queue for swap events
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rib/frame-synchronization: 1/5] glx: refer to head of info queue for swap events
- Date: Tue, 29 Jan 2013 16:55:48 +0000 (UTC)
commit 906bb1d5625f56b3f7842e4c63e509f1a69ba65f
Author: Robert Bragg <robert linux intel com>
Date: Tue Jan 29 15:42:47 2013 +0000
glx: refer to head of info queue for swap events
when handling swap events we should be referring to the head of the
pending_frame_infos queue not the tail.
TODO: squash back
cogl/winsys/cogl-winsys-egl-kms.c | 2 +-
cogl/winsys/cogl-winsys-glx.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index 1867e56..a984afb 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -896,7 +896,7 @@ flush_pending_swap_notify_cb (void *data,
if (kms_onscreen->pending_swap_notify)
{
- CoglFrameInfo *info = g_queue_pop_tail (&onscreen->pending_frame_infos);
+ CoglFrameInfo *info = g_queue_pop_head (&onscreen->pending_frame_infos);
_cogl_onscreen_notify_frame_sync (onscreen, info);
_cogl_onscreen_notify_complete (onscreen, info);
diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c
index b5e04ef..0866af3 100644
--- a/cogl/winsys/cogl-winsys-glx.c
+++ b/cogl/winsys/cogl-winsys-glx.c
@@ -295,7 +295,7 @@ notify_swap_buffers (CoglContext *context, GLXBufferSwapComplete *swap_event)
if (swap_event->ust != 0)
{
- CoglFrameInfo *info = g_queue_peek_tail (&onscreen->pending_frame_infos);
+ CoglFrameInfo *info = g_queue_peek_head (&onscreen->pending_frame_infos);
info->presentation_time =
ust_to_nanoseconds (context->display->renderer,
@@ -2479,7 +2479,7 @@ flush_pending_notifications_cb (void *data,
if (glx_onscreen->pending_sync_notify)
{
- CoglFrameInfo *info = g_queue_peek_tail (&onscreen->pending_frame_infos);
+ CoglFrameInfo *info = g_queue_peek_head (&onscreen->pending_frame_infos);
_cogl_onscreen_notify_frame_sync (onscreen, info);
glx_onscreen->pending_sync_notify = FALSE;
@@ -2487,7 +2487,7 @@ flush_pending_notifications_cb (void *data,
if (glx_onscreen->pending_complete_notify)
{
- CoglFrameInfo *info = g_queue_pop_tail (&onscreen->pending_frame_infos);
+ CoglFrameInfo *info = g_queue_pop_head (&onscreen->pending_frame_infos);
_cogl_onscreen_notify_complete (onscreen, info);
glx_onscreen->pending_complete_notify = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]