Commit b266b259 authored by reveman's avatar reveman Committed by Commit bot

exo: Fix handling of pending damage.

Pending damage was ignored prior to this change. Full damage should
be used in lost context situations and client provided damage for
normal commit.

BUG=673134
TEST=wayland_motion_events

Review-Url: https://codereview.chromium.org/2565973002
Cr-Commit-Position: refs/heads/master@{#437782}
parent 211f7ed0
......@@ -408,7 +408,7 @@ void Surface::CommitSurfaceHierarchy() {
local_frame_id_ = id_allocator_.GenerateId();
}
UpdateSurface(true);
UpdateSurface(false);
if (old_local_frame_id != local_frame_id_) {
float contents_surface_to_layer_scale = 1.0;
......@@ -553,7 +553,7 @@ void Surface::OnLostResources() {
return;
UpdateResource(false);
UpdateSurface(false);
UpdateSurface(true);
}
void Surface::OnWindowAddedToRootWindow(aura::Window* window) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment