Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: components/exo/wayland/clients/motion_events.cc

Issue 2569613002: exo: Send damage to compositor when committing new buffer. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/clients/motion_events.cc
diff --git a/components/exo/wayland/clients/motion_events.cc b/components/exo/wayland/clients/motion_events.cc
index 37cdb045c911222a61f9266798afaf1a5b4d444c..9f7f86e7088a1ba1fa6f09b67e751dec299fff71 100644
--- a/components/exo/wayland/clients/motion_events.cc
+++ b/components/exo/wayland/clients/motion_events.cc
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698