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

« back to all changes in this revision

Viewing changes to src/platforms/mesa/server/shm_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:
87
87
    return native_buffer;
88
88
}
89
89
 
90
 
bool mgm::ShmBuffer::can_bypass() const
91
 
{
92
 
    return false;
93
 
}
94
 
 
95
90
void mgm::ShmBuffer::write(unsigned char const* data, size_t data_size)
96
91
{
97
92
    if (data_size != stride_.as_uint32_t()*size().height.as_uint32_t())