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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_picture.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index b1248e005f8b3ff52c80a5f60f255816e577c0c4..6498f0e0996ce49b310eb9a1c7a5d83bcfbfe4df 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -129,8 +129,8 @@ void SingleThreadProxy::SetOutputSurface(
output_surface_creation_requested_ = false;
renderer_capabilities_for_main_thread_ = RendererCapabilities();
- bool success = !!output_surface;
- if (success) {
+ bool success;
+ {
DebugScopedSetMainThreadBlocked main_thread_blocked(this);
DebugScopedSetImplThread impl(this);
layer_tree_host_->DeleteContentsTexturesOnImplThread(
@@ -138,15 +138,14 @@ void SingleThreadProxy::SetOutputSurface(
success = layer_tree_host_impl_->InitializeRenderer(output_surface.Pass());
}
- layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(success);
-
if (success) {
+ layer_tree_host_->DidInitializeOutputSurface();
if (scheduler_on_impl_thread_)
scheduler_on_impl_thread_->DidCreateAndInitializeOutputSurface();
else if (!inside_synchronous_composite_)
SetNeedsCommit();
- } else if (Proxy::MainThreadTaskRunner()) {
- ScheduleRequestNewOutputSurface();
+ } else {
+ layer_tree_host_->DidFailToInitializeOutputSurface();
}
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_picture.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698