~raof/mir/documentation-warning

« back to all changes in this revision

Viewing changes to include/platform/mir/graphics/display_buffer.h

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2015-01-07 03:52:15 UTC
  • mfrom: (2197.2.2 depr)
  • Revision ID: tarmac-20150107035215-ntu23ikdioqu4916
Add a deprecation warning for DisplayBuffer::post_update() with
instructions on what to change it to.

Approved by Robert Carr, Kevin DuBois, Alan Griffiths, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
     * flip functions instead. If not possible, just move your old
74
74
     * post_update() logic into gl_swap_buffers.
75
75
     */
 
76
    __attribute__((__deprecated__("Use gl_swap_buffers() and flip(), remembering to release all compositor buffers in the middle.")))
76
77
    void post_update() { gl_swap_buffers(); flip(); }
77
78
 
78
79
    /** This will render renderlist to the screen and post the result to the