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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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_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
deleted file mode 100644
index 143d22ea0c8413ec8cd100e39a276c4b48d79a57..0000000000000000000000000000000000000000
--- a/cc/test/fake_layer_tree_host.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/test/fake_layer_tree_host.h"
-
-namespace cc {
-FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client,
- const LayerTreeSettings& settings)
- : LayerTreeHost(client, NULL, NULL, NULL, settings),
- client_(client),
- host_impl_(settings, &proxy_, &manager_, nullptr),
- needs_commit_(false) {
- client_->SetLayerTreeHost(this);
-}
-
-scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
- FakeLayerTreeHostClient* client) {
- LayerTreeSettings settings;
- settings.verify_property_trees = true;
- return make_scoped_ptr(new FakeLayerTreeHost(client, settings));
-}
-
-scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
- FakeLayerTreeHostClient* client,
- const LayerTreeSettings& settings) {
- return make_scoped_ptr(new FakeLayerTreeHost(client, settings));
-}
-
-FakeLayerTreeHost::~FakeLayerTreeHost() {
- client_->SetLayerTreeHost(NULL);
-}
-
-void FakeLayerTreeHost::SetNeedsCommit() { needs_commit_ = true; }
-
-LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
- scoped_ptr<LayerImpl> old_root_layer_impl = active_tree()->DetachLayerTree();
-
- scoped_ptr<LayerImpl> layer_impl = TreeSynchronizer::SynchronizeTrees(
- root_layer(), old_root_layer_impl.Pass(), active_tree());
- TreeSynchronizer::PushProperties(root_layer(), layer_impl.get());
-
- active_tree()->SetRootLayer(layer_impl.Pass());
- return active_tree()->root_layer();
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698