From: Pekka Paalanen Date: Wed, 10 Oct 2012 09:47:49 +0000 (+0300) Subject: protocol: wl_surface.frame needs wl_surface.commit X-Git-Tag: accepted/2.0alpha-wayland/20121109.201735~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4fd9e6583c47e9b997fff09dc32de1fc96f3b07;p=profile%2Fivi%2Fwayland.git protocol: wl_surface.frame needs wl_surface.commit Clarify, when frame request takes effect. Explain when to send/receive the callback. Signed-off-by: Pekka Paalanen --- diff --git a/protocol/wayland.xml b/protocol/wayland.xml index e5c8c91..61bf268 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -705,10 +705,20 @@ - Request notification when the next frame is displayed. Useful + Request notification when the next frame is displayed. Useful for throttling redrawing operations, and driving animations. + The frame request will take effect on the next wl_surface.commit. The notification will only be posted for one frame unless requested again. + + A server should avoid signalling the frame callbacks if the + surface is not visible in any way, e.g. the surface is off-screen, + or completely obscured by other opaque surfaces. + + A client can request a frame callback even without an attach, + damage, or any other state changes. wl_surface.commit triggers a + repaint, so the callback event will arrive after the next output + refresh where the surface is visible.