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

Unified Diff: cc/trees/proxy_impl.cc

Issue 2282433002: Revert of cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: 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/proxy_impl.h ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_impl.cc
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
index 3a6f2db319847a10c0e1d43e28c366f80a0bb220..7defc51fd4b093d6b995c1b282d38af7ea943d12 100644
--- a/cc/trees/proxy_impl.cc
+++ b/cc/trees/proxy_impl.cc
@@ -146,7 +146,14 @@
LayerTreeHostImpl* host_impl = layer_tree_host_impl_.get();
bool success = host_impl->InitializeRenderer(output_surface);
- channel_impl_->DidInitializeOutputSurface(success);
+ RendererCapabilities capabilities;
+ if (success) {
+ capabilities =
+ host_impl->GetRendererCapabilities().MainThreadCapabilities();
+ }
+
+ channel_impl_->DidInitializeOutputSurface(success, capabilities);
+
if (success)
scheduler_->DidCreateAndInitializeOutputSurface();
}
@@ -268,6 +275,13 @@
DCHECK(!blocked_main_commit().layer_tree_host);
blocked_main_commit().layer_tree_host = layer_tree_host;
scheduler_->NotifyReadyToCommit();
+}
+
+void ProxyImpl::UpdateRendererCapabilitiesOnImplThread() {
+ DCHECK(IsImplThread());
+ channel_impl_->SetRendererCapabilitiesMainCopy(
+ layer_tree_host_impl_->GetRendererCapabilities()
+ .MainThreadCapabilities());
}
void ProxyImpl::DidLoseOutputSurfaceOnImplThread() {
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698