| 256 | } |
| 257 | |
| 258 | void FramebufferDevice::sync_pixels_rectangle(uint32_t top_right_x, uint32_t top_right_y, uint32_t width, uint32_t height) |
| 259 | { |
| 260 | if (top_right_x >= m_width || top_right_y >= m_height) |
| 261 | return; |
| 262 | if (top_right_x + width > m_width) |
| 263 | width = m_width - top_right_x; |
| 264 | if (top_right_y + height > m_height) |
| 265 | height = m_height - top_right_y; |
| 266 | |
| 267 | for (uint32_t row = top_right_y; row < top_right_y + height; row++) |
| 268 | sync_pixels_linear(row * m_width + top_right_x, width); |
| 269 | } |
| 270 | |
| 271 | class FramebufferMemoryRegion : public MemoryRegion |
| 272 | { |
no outgoing calls
no test coverage detected