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

Side by Side Diff: cc/test/fake_layer_tree_host.cc

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/test/fake_layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/fake_layer_tree_host.h" 5 #include "cc/test/fake_layer_tree_host.h"
6 6
7 namespace cc { 7 namespace cc {
8 FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client, 8 FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client,
9 const LayerTreeSettings& settings) 9 const LayerTreeSettings& settings)
10 : LayerTreeHost(client, NULL, settings), 10 : LayerTreeHost(client, NULL, NULL, settings),
11 client_(client), 11 client_(client),
12 host_impl_(settings, &proxy_, &manager_), 12 host_impl_(settings, &proxy_, &manager_),
13 needs_commit_(false) { 13 needs_commit_(false) {
14 client_->SetLayerTreeHost(this); 14 client_->SetLayerTreeHost(this);
15 } 15 }
16 16
17 scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create( 17 scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
18 FakeLayerTreeHostClient* client) { 18 FakeLayerTreeHostClient* client) {
19 LayerTreeSettings settings; 19 LayerTreeSettings settings;
20 return make_scoped_ptr(new FakeLayerTreeHost(client, settings)); 20 return make_scoped_ptr(new FakeLayerTreeHost(client, settings));
(...skipping 16 matching lines...) Expand all
37 37
38 scoped_ptr<LayerImpl> layer_impl = TreeSynchronizer::SynchronizeTrees( 38 scoped_ptr<LayerImpl> layer_impl = TreeSynchronizer::SynchronizeTrees(
39 root_layer(), old_root_layer_impl.Pass(), active_tree()); 39 root_layer(), old_root_layer_impl.Pass(), active_tree());
40 TreeSynchronizer::PushProperties(root_layer(), layer_impl.get()); 40 TreeSynchronizer::PushProperties(root_layer(), layer_impl.get());
41 41
42 active_tree()->SetRootLayer(layer_impl.Pass()); 42 active_tree()->SetRootLayer(layer_impl.Pass());
43 return active_tree()->root_layer(); 43 return active_tree()->root_layer();
44 } 44 }
45 45
46 } // namespace cc 46 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/test/fake_layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698