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

Unified Diff: cc/trees/proxy_main.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: android-build-and-earlyout-sooner 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 | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_main.cc
diff --git a/cc/trees/proxy_main.cc b/cc/trees/proxy_main.cc
index 9f3a1add77240eca8a87a262e243dd6a36c1b71b..117f76890ec0caadb2fece341fa385ff6506df5a 100644
--- a/cc/trees/proxy_main.cc
+++ b/cc/trees/proxy_main.cc
@@ -159,16 +159,6 @@ void ProxyMain::BeginMainFrame(
return;
}
- if (layer_tree_host_->output_surface_lost()) {
- TRACE_EVENT_INSTANT0("cc", "EarlyOut_OutputSurfaceLost",
- TRACE_EVENT_SCOPE_THREAD);
- std::vector<std::unique_ptr<SwapPromise>> empty_swap_promises;
- channel_main_->BeginMainFrameAbortedOnImpl(
- CommitEarlyOutReason::ABORTED_OUTPUT_SURFACE_LOST,
- begin_main_frame_start_time, std::move(empty_swap_promises));
- return;
- }
-
current_pipeline_stage_ = ANIMATE_PIPELINE_STAGE;
layer_tree_host_->ApplyScrollAndScale(
@@ -406,8 +396,6 @@ bool ProxyMain::MainFrameWillHappenForTesting() {
void ProxyMain::ReleaseOutputSurface() {
DCHECK(IsMainThread());
- DCHECK(layer_tree_host_->output_surface_lost());
-
DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
CompletionEvent completion;
channel_main_->ReleaseOutputSurfaceOnImpl(&completion);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698