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

Unified Diff: cc/surfaces/display.cc

Issue 1327343003: Force swap buffers when re-creating the buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-scanout
Patch Set: update Created 5 years, 3 months 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 | content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index fe278fc08fa7e4a1fbfe3099196cbc2f918ef048..329575fe4406dd4975fc04bf13c71d20d580e258 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) {
« no previous file with comments | « no previous file | content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698