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

Unified Diff: cc/test/fake_layer_tree_host.h

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_channel_impl.h ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host.h
diff --git a/cc/test/fake_layer_tree_host.h b/cc/test/fake_layer_tree_host.h
index 2352aed6acef258893daee5fe618c05c3edafb47..5f182de775325c1793376f6b5ac81c54f09108c8 100644
--- a/cc/test/fake_layer_tree_host.h
+++ b/cc/test/fake_layer_tree_host.h
@@ -46,6 +46,7 @@
ImageSerializationProcessor* image_serialization_processor);
~FakeLayerTreeHost() override;
+ const RendererCapabilities& GetRendererCapabilities() const override;
void SetNeedsCommit() override;
void SetNeedsUpdateLayers() override {}
@@ -80,6 +81,11 @@
bool needs_commit() { return needs_commit_; }
+ void set_renderer_capabilities(const RendererCapabilities& capabilities) {
+ renderer_capabilities_set = true;
+ renderer_capabilities = capabilities;
+ }
+
protected:
FakeLayerTreeHost(FakeLayerTreeHostClient* client,
LayerTreeHost::InitParams* params,
@@ -91,6 +97,9 @@
TestSharedBitmapManager manager_;
FakeLayerTreeHostImpl host_impl_;
bool needs_commit_;
+
+ bool renderer_capabilities_set;
+ RendererCapabilities renderer_capabilities;
};
} // namespace cc
« no previous file with comments | « cc/test/fake_channel_impl.h ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698