diff options
author | dnicoara <dnicoara@chromium.org> | 2015-09-10 14:40:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-10 21:41:31 +0000 |
commit | 61df9d531b103895877d163c1635bac16d686952 (patch) | |
tree | 5ea4179e3c9178be9d784c642bb1634d037975c5 /cc/surfaces/display.cc | |
parent | 2ff6f4728066062448ae1bfb5ff32eb5c8561fe2 (diff) | |
download | chromium_src-61df9d531b103895877d163c1635bac16d686952.zip chromium_src-61df9d531b103895877d163c1635bac16d686952.tar.gz chromium_src-61df9d531b103895877d163c1635bac16d686952.tar.bz2 |
Force swap buffers when re-creating the buffers
The SwapResult provides a way to signal when the buffers are no longer
adequate and need to be re-allocated. Currently the surfaceless
implementation of the GpuBrowserCompositorOutputSurface will re-allocate
the buffers, however it doesn't swap again. Since the previous buffer
was rejected the display is showing an old frame.
BUG=511446
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1327343003
Cr-Commit-Position: refs/heads/master@{#348246}
Diffstat (limited to 'cc/surfaces/display.cc')
-rw-r--r-- | cc/surfaces/display.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc index fe278fc..329575f 100644 --- a/cc/surfaces/display.cc +++ b/cc/surfaces/display.cc @@ -277,7 +277,9 @@ void Display::OnDraw() { } void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { - NOTREACHED(); + aggregator_->SetFullDamageForSurface(current_surface_id_); + if (scheduler_) + scheduler_->SurfaceDamaged(current_surface_id_); } void Display::ReclaimResources(const CompositorFrameAck* ack) { |