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

Unified Diff: cc/test/fake_layer_tree_host.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/test/fake_layer_tree_host.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host.cc
diff --git a/cc/test/fake_layer_tree_host.cc b/cc/test/fake_layer_tree_host.cc
index 2c09fdd414a9f432a5cdb2346e97a49386dc46a8..9f5956a07a34a7db032f3f1c76a079b884342cb0 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -39,7 +39,8 @@
&task_runner_provider_,
&manager_,
params->task_graph_runner),
- needs_commit_(false) {
+ needs_commit_(false),
+ renderer_capabilities_set(false) {
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner =
mode == CompositorMode::THREADED ? base::ThreadTaskRunnerHandle::Get()
: nullptr;
@@ -97,6 +98,12 @@
client_->SetLayerTreeHost(NULL);
}
+const RendererCapabilities& FakeLayerTreeHost::GetRendererCapabilities() const {
+ if (renderer_capabilities_set)
+ return renderer_capabilities;
+ return LayerTreeHost::GetRendererCapabilities();
+}
+
void FakeLayerTreeHost::SetNeedsCommit() { needs_commit_ = true; }
LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698