]> git.eshelyaron.com Git - emacs.git/commit
Implement primitive frame synchronization on Haiku
authorPo Lu <luangruo@yahoo.com>
Mon, 1 Aug 2022 05:51:59 +0000 (05:51 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 1 Aug 2022 05:51:59 +0000 (05:51 +0000)
commit99754dad3c612703e06439cdb324033a25e24464
tree5e637bb4d2c2f157ad3fe115f33c9ab60fed7b3c
parentbc03a5b2c4a40e520888169091fe9ea552233f5f
Implement primitive frame synchronization on Haiku

Instead of relying on a compositor to do the work, we simply
wait for VBLANK and hope that the update finishes soon enough.

* doc/lispref/frames.texi (Management Parameters): Document that
frame synchronization is now supported on Haiku.

* src/haiku_support.cc (class EmacsView): New field
`use_frame_synchronization'.
(FlipBuffers): Wait for vertical blanking period.
(be_set_use_frame_synchronization): New function.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_create_frame): Set
`use-frame-synchronization'.

(haiku_set_use_frame_synchronization)
(haiku_frame_parm_handlers): New param handler.
doc/lispref/frames.texi
src/haiku_support.cc
src/haiku_support.h
src/haikufns.c