OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_LAYER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ |
6 #define CC_TEST_LAYER_TEST_COMMON_H_ | 6 #define CC_TEST_LAYER_TEST_COMMON_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/test/fake_layer_tree_host.h" | 10 #include "cc/test/fake_layer_tree_host.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 OutputSurface* output_surface() const { | 107 OutputSurface* output_surface() const { |
108 return host_->host_impl()->output_surface(); | 108 return host_->host_impl()->output_surface(); |
109 } | 109 } |
110 ResourceProvider* resource_provider() const { | 110 ResourceProvider* resource_provider() const { |
111 return host_->host_impl()->resource_provider(); | 111 return host_->host_impl()->resource_provider(); |
112 } | 112 } |
113 LayerImpl* root_layer() const { return root_layer_impl_.get(); } | 113 LayerImpl* root_layer() const { return root_layer_impl_.get(); } |
114 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } | 114 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } |
115 Proxy* proxy() const { return host_->host_impl()->proxy(); } | 115 Proxy* proxy() const { return host_->host_impl()->proxy(); } |
116 const QuadList& quad_list() const { return quad_culler_.quad_list(); } | 116 const QuadList& quad_list() const { return quad_culler_->quad_list(); } |
117 | 117 |
118 private: | 118 private: |
119 scoped_ptr<FakeLayerTreeHost> host_; | 119 scoped_ptr<FakeLayerTreeHost> host_; |
120 scoped_ptr<LayerImpl> root_layer_impl_; | 120 scoped_ptr<LayerImpl> root_layer_impl_; |
121 MockQuadCuller quad_culler_; | 121 scoped_ptr<RenderPass> render_pass_; |
| 122 MockOcclusionTracker<LayerImpl> occlusion_tracker_; |
| 123 scoped_ptr<MockQuadCuller> quad_culler_; |
122 }; | 124 }; |
123 }; | 125 }; |
124 | 126 |
125 } // namespace cc | 127 } // namespace cc |
126 | 128 |
127 #endif // CC_TEST_LAYER_TEST_COMMON_H_ | 129 #endif // CC_TEST_LAYER_TEST_COMMON_H_ |
OLD | NEW |