Index: cc/trees/single_thread_proxy.cc |
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
index 2a53ef6d0628899ba3bfd37d73595a9262f9f54a..cf9206c939011ef6b4965eb93e2b2745ee3abb70 100644 |
--- a/cc/trees/single_thread_proxy.cc |
+++ b/cc/trees/single_thread_proxy.cc |
@@ -152,6 +152,7 @@ |
DCHECK(task_runner_provider_->IsMainThread()); |
DCHECK(layer_tree_host_->output_surface_lost()); |
DCHECK(output_surface_creation_requested_); |
+ renderer_capabilities_for_main_thread_ = RendererCapabilities(); |
bool success; |
{ |
@@ -174,6 +175,12 @@ |
} |
} |
+const RendererCapabilities& SingleThreadProxy::GetRendererCapabilities() const { |
+ DCHECK(task_runner_provider_->IsMainThread()); |
+ DCHECK(!layer_tree_host_->output_surface_lost()); |
+ return renderer_capabilities_for_main_thread_; |
+} |
+ |
void SingleThreadProxy::SetNeedsAnimate() { |
TRACE_EVENT0("cc", "SingleThreadProxy::SetNeedsAnimate"); |
DCHECK(task_runner_provider_->IsMainThread()); |
@@ -448,6 +455,12 @@ |
void SingleThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
layer_tree_host_->DidCompletePageScaleAnimation(); |
+} |
+ |
+void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { |
+ DCHECK(task_runner_provider_->IsImplThread()); |
+ renderer_capabilities_for_main_thread_ = |
+ layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); |
} |
void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { |