Skip to content

Commit

Permalink
exo: Send damage to compositor when committing new buffer.
Browse files Browse the repository at this point in the history
BUG=
TEST=wayland_motion_events

Review-Url: https://codereview.chromium.org/2569613002
Cr-Commit-Position: refs/heads/master@{#437781}
  • Loading branch information
reveman-chromium authored and Commit bot committed Dec 11, 2016
1 parent d8f4f64 commit 211f7ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/exo/wayland/clients/motion_events.cc
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ int MotionEvents::Run() {
if (!frame.callback_pending) {
DCHECK_GT(pending_frames.size(), 0u);
wl_surface_set_buffer_scale(surface.get(), scale_);
wl_surface_damage(surface.get(), 0, 0, width_ / scale_, height_ / scale_);
wl_surface_attach(surface.get(), pending_frames.front(), 0, 0);
pending_frames.pop_front();

Expand Down

0 comments on commit 211f7ed

Please sign in to comment.