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

Unified Diff: cc/test/fake_layer_tree_host.h

Issue 2183403002: cc: Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layer_tree_change
Patch Set: remove unused test file. 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
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 86ffd2809c37efdb0eee198c5bb9f26bb760d207..5f182de775325c1793376f6b5ac81c54f09108c8 100644
--- a/cc/test/fake_layer_tree_host.h
+++ b/cc/test/fake_layer_tree_host.h
@@ -49,10 +49,14 @@ class FakeLayerTreeHost : public LayerTreeHost {
const RendererCapabilities& GetRendererCapabilities() const override;
void SetNeedsCommit() override;
void SetNeedsUpdateLayers() override {}
- void SetNeedsFullTreeSync() override {}
- using LayerTreeHost::SetRootLayer;
- using LayerTreeHost::root_layer;
+ void SetRootLayer(scoped_refptr<Layer> root_layer) {
+ layer_tree_->SetRootLayer(root_layer);
+ }
+ Layer* root_layer() const { return layer_tree_->root_layer(); }
+ PropertyTrees* property_trees() const {
+ return layer_tree_->property_trees();
+ }
LayerImpl* CommitAndCreateLayerImplTree();
LayerImpl* CommitAndCreatePendingTree();

Powered by Google App Engine
This is Rietveld 408576698