Change-Id: I91647bd515a1497ae999b3f493d60b3250727b67
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
if (!m_handle) {
GraphicsHardwareIntegration *hwIntegration = m_compositor->graphicsHWIntegration();
SurfaceBuffer *that = const_cast<SurfaceBuffer *>(this);
- that->m_handle = hwIntegration->lockNativeBuffer(m_buffer, m_compositor->directRenderContext());
+ if (isShmBuffer()) {
+ that->m_handle = wl_shm_buffer_get_data(m_buffer);
+ } else {
+ that->m_handle = hwIntegration->lockNativeBuffer(m_buffer, m_compositor->directRenderContext());
+ }
}
return m_handle;
}