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

Unified Diff: blimp/client/feature/compositor/blimp_compositor.cc

Issue 2270573002: cc: Get rid of LayerTreeHost::output_surface_lost_ state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-caps
Patch Set: lth-outputsurface-lost: deps Created 4 years, 4 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 | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | ui/compositor/compositor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/feature/compositor/blimp_compositor.cc
diff --git a/blimp/client/feature/compositor/blimp_compositor.cc b/blimp/client/feature/compositor/blimp_compositor.cc
index d1e3688c3e71289726a1b9a95ab33c98c3418a39..80888fc007263bf0af74982fb9938836ed11f17b 100644
--- a/blimp/client/feature/compositor/blimp_compositor.cc
+++ b/blimp/client/feature/compositor/blimp_compositor.cc
@@ -183,9 +183,7 @@ void BlimpCompositor::SetVisibleInternal(bool visible) {
// If not visible, hide the compositor and have it drop it's output
// surface.
host_->SetVisible(false);
- if (!host_->output_surface_lost()) {
- host_->ReleaseOutputSurface();
- }
+ host_->ReleaseOutputSurface();
}
}
« no previous file with comments | « no previous file | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | ui/compositor/compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698