| 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/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 OutputSurface* output_surface() const { | 127 OutputSurface* output_surface() const { |
| 128 return host_->host_impl()->output_surface(); | 128 return host_->host_impl()->output_surface(); |
| 129 } | 129 } |
| 130 ResourceProvider* resource_provider() const { | 130 ResourceProvider* resource_provider() const { |
| 131 return host_->host_impl()->resource_provider(); | 131 return host_->host_impl()->resource_provider(); |
| 132 } | 132 } |
| 133 LayerImpl* root_layer() const { return root_layer_impl_.get(); } | 133 LayerImpl* root_layer() const { return root_layer_impl_.get(); } |
| 134 FakeLayerTreeHost* host() { return host_.get(); } | 134 FakeLayerTreeHost* host() { return host_.get(); } |
| 135 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } | 135 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } |
| 136 Proxy* proxy() const { return host_->host_impl()->proxy(); } | 136 ThreadVerifier* thread_verifier() const { |
| 137 return host_->host_impl()->thread_verifier(); |
| 138 } |
| 137 const QuadList& quad_list() const { return render_pass_->quad_list; } | 139 const QuadList& quad_list() const { return render_pass_->quad_list; } |
| 138 | 140 |
| 139 private: | 141 private: |
| 140 FakeLayerTreeHostClient client_; | 142 FakeLayerTreeHostClient client_; |
| 141 TestTaskGraphRunner task_graph_runner_; | 143 TestTaskGraphRunner task_graph_runner_; |
| 142 scoped_ptr<OutputSurface> output_surface_; | 144 scoped_ptr<OutputSurface> output_surface_; |
| 143 scoped_ptr<FakeLayerTreeHost> host_; | 145 scoped_ptr<FakeLayerTreeHost> host_; |
| 144 scoped_ptr<LayerImpl> root_layer_impl_; | 146 scoped_ptr<LayerImpl> root_layer_impl_; |
| 145 scoped_ptr<RenderPass> render_pass_; | 147 scoped_ptr<RenderPass> render_pass_; |
| 146 int layer_impl_id_; | 148 int layer_impl_id_; |
| 147 }; | 149 }; |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace cc | 152 } // namespace cc |
| 151 | 153 |
| 152 #endif // CC_TEST_LAYER_TEST_COMMON_H_ | 154 #endif // CC_TEST_LAYER_TEST_COMMON_H_ |
| OLD | NEW |