~andreas-pokorny/mir/activate-pointer-acceleration

« back to all changes in this revision

Viewing changes to src/platforms/mesa/server/display_buffer.cpp

  • Committer: Tarmac
  • Author(s): Cemil Azizoglu
  • Date: 2015-02-18 03:04:18 UTC
  • mfrom: (2317.2.5 mir-dev)
  • Revision ID: tarmac-20150218030418-o84yyon2ea2ijcdj
Implement bypass using flags in the native handle.

Approved by Chris Halse Rogers, Kevin DuBois, PS Jenkins bot, Daniel van Vugt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        if (bypass_it != renderable_list.rend())
206
206
        {
207
207
            auto bypass_buf = (*bypass_it)->buffer();
208
 
            if (bypass_buf->can_bypass() &&
 
208
            if ((bypass_buf->native_buffer_handle()->flags & mir_buffer_flag_can_scanout) &&
209
209
                bypass_buf->size() == geom::Size{fb_width,fb_height})
210
210
            {
211
211
                return flip(bypass_buf);