~3v1n0/nux/check-dnd_area-trusty

Viewing all changes in revision 828.

  • Committer: Tarmac
  • Author(s): Sam Spilsbury, Marco Trevisan (Treviño), Chris Townsend
  • Date: 2013-11-05 20:23:53 UTC
  • mfrom: (791.2.28 nux)
  • Revision ID: tarmac-20131105202353-58aojyevtnonqavv
Allow embedded clients to specify which windows should be redrawn.

Added some new API to nux to allow embedded clients (eg, compiz) to specify which BaseWindows should be redrawn on a frame. This is done by passing a list of rectangles to nux which represent the redraw region, and nux will mark all intersecting windows as needing re-presenting to the screen. This means that we aren't re-presenting every window to the screen on every frame (bad for performance, and also doesn't work correctly in the buffer-swap case).

Also added API to allow nux to tell the difference between draw and read framebuffers when it plays around with the framebuffer object binding. This is necessary in case the embedded client expects the read framebuffer binding to remain defined even after nux has changed the draw framebuffer binding.

(LP: #1091589). Fixes: https://bugs.launchpad.net/bugs/1091589.

Approved by PS Jenkins bot, Stephen M. Webb, Brandon Schaefer, Christopher Townsend.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: