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

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

Issue 300963004: cc: Add message passing mechanism to micro benchmarking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 6 years, 6 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 | Annotate | Revision Log
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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_ 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_
7 7
8 #include "cc/debug/micro_benchmark_controller.h" 8 #include "cc/debug/micro_benchmark_controller.h"
9 #include "cc/test/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host_client.h" 10 #include "cc/test/fake_layer_tree_host_client.h"
(...skipping 19 matching lines...) Expand all
30 30
31 using LayerTreeHost::SetRootLayer; 31 using LayerTreeHost::SetRootLayer;
32 using LayerTreeHost::root_layer; 32 using LayerTreeHost::root_layer;
33 33
34 LayerImpl* CommitAndCreateLayerImplTree(); 34 LayerImpl* CommitAndCreateLayerImplTree();
35 35
36 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } 36 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; }
37 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } 37 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); }
38 38
39 using LayerTreeHost::ScheduleMicroBenchmark; 39 using LayerTreeHost::ScheduleMicroBenchmark;
40 using LayerTreeHost::SendMessageToMicroBenchmark;
40 using LayerTreeHost::SetOutputSurfaceLostForTesting; 41 using LayerTreeHost::SetOutputSurfaceLostForTesting;
41 using LayerTreeHost::InitializeSingleThreaded; 42 using LayerTreeHost::InitializeSingleThreaded;
42 using LayerTreeHost::InitializeForTesting; 43 using LayerTreeHost::InitializeForTesting;
43 void UpdateLayers(ResourceUpdateQueue* queue) { 44 void UpdateLayers(ResourceUpdateQueue* queue) {
44 LayerTreeHost::UpdateLayers(queue); 45 LayerTreeHost::UpdateLayers(queue);
45 } 46 }
46 47
47 MicroBenchmarkController* GetMicroBenchmarkController() { 48 MicroBenchmarkController* GetMicroBenchmarkController() {
48 return &micro_benchmark_controller_; 49 return &micro_benchmark_controller_;
49 } 50 }
50 51
51 bool needs_commit() { return needs_commit_; } 52 bool needs_commit() { return needs_commit_; }
52 53
53 private: 54 private:
54 FakeLayerTreeHost(LayerTreeHostClient* client, 55 FakeLayerTreeHost(LayerTreeHostClient* client,
55 const LayerTreeSettings& settings); 56 const LayerTreeSettings& settings);
56 57
57 FakeImplProxy proxy_; 58 FakeImplProxy proxy_;
58 TestSharedBitmapManager manager_; 59 TestSharedBitmapManager manager_;
59 FakeLayerTreeHostImpl host_impl_; 60 FakeLayerTreeHostImpl host_impl_;
60 bool needs_commit_; 61 bool needs_commit_;
61 }; 62 };
62 63
63 } // namespace cc 64 } // namespace cc
64 65
65 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ 66 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698