OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 // cc::LayerTreeHostSingleThreadClient implementation. | 293 // cc::LayerTreeHostSingleThreadClient implementation. |
294 void DidPostSwapBuffers() override; | 294 void DidPostSwapBuffers() override; |
295 void DidAbortSwapBuffers() override; | 295 void DidAbortSwapBuffers() override; |
296 | 296 |
297 bool IsLocked() { return compositor_lock_ != NULL; } | 297 bool IsLocked() { return compositor_lock_ != NULL; } |
298 | 298 |
299 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 299 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
300 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); | 300 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); |
301 const cc::RendererSettings& GetRendererSettings() const; | 301 const cc::RendererSettings& GetRendererSettings() const; |
| 302 const cc::LayerTreeHost& GetLayerTreeHost() const; |
302 | 303 |
303 LayerAnimatorCollection* layer_animator_collection() { | 304 LayerAnimatorCollection* layer_animator_collection() { |
304 return &layer_animator_collection_; | 305 return &layer_animator_collection_; |
305 } | 306 } |
306 | 307 |
307 cc::SurfaceIdAllocator* surface_id_allocator() { | 308 cc::SurfaceIdAllocator* surface_id_allocator() { |
308 return surface_id_allocator_.get(); | 309 return surface_id_allocator_.get(); |
309 } | 310 } |
310 | 311 |
311 private: | 312 private: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 cc::BeginFrameArgs missed_begin_frame_args_; | 355 cc::BeginFrameArgs missed_begin_frame_args_; |
355 | 356 |
356 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 357 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
357 | 358 |
358 DISALLOW_COPY_AND_ASSIGN(Compositor); | 359 DISALLOW_COPY_AND_ASSIGN(Compositor); |
359 }; | 360 }; |
360 | 361 |
361 } // namespace ui | 362 } // namespace ui |
362 | 363 |
363 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 364 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |