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

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: 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
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index fe278fc08fa7e4a1fbfe3099196cbc2f918ef048..c23199b4aec0e3325f90827157bc4dd6b401c65a 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -276,6 +276,10 @@ void Display::OnDraw() {
NOTREACHED();
}
+void Display::ForceSwap() {
+ aggregator_->SetFullDamageForSurface(current_surface_id_);
jbauman 2015/09/10 19:29:50 This won't actually force a swap immediately, it j
dnicoara 2015/09/10 19:39:39 Done.
+}
+
void Display::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698