| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 struct Mailbox; | 61 struct Mailbox; |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace ui { | 64 namespace ui { |
| 65 | 65 |
| 66 class Compositor; | 66 class Compositor; |
| 67 class CompositorVSyncManager; | 67 class CompositorVSyncManager; |
| 68 class LatencyInfo; | 68 class LatencyInfo; |
| 69 class Layer; | 69 class Layer; |
| 70 class Reflector; | 70 class Reflector; |
| 71 class UIScrollInputManager; |
| 71 class Texture; | 72 class Texture; |
| 72 | 73 |
| 73 #if defined(USE_AURA) | 74 #if defined(USE_AURA) |
| 74 class Window; | 75 class Window; |
| 75 #endif | 76 #endif |
| 76 | 77 |
| 77 const int kCompositorLockTimeoutMs = 67; | 78 const int kCompositorLockTimeoutMs = 67; |
| 78 | 79 |
| 79 class COMPOSITOR_EXPORT ContextFactoryObserver { | 80 class COMPOSITOR_EXPORT ContextFactoryObserver { |
| 80 public: | 81 public: |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 380 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
| 380 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); | 381 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); |
| 381 const cc::RendererSettings& GetRendererSettings() const; | 382 const cc::RendererSettings& GetRendererSettings() const; |
| 382 | 383 |
| 383 LayerAnimatorCollection* layer_animator_collection() { | 384 LayerAnimatorCollection* layer_animator_collection() { |
| 384 return &layer_animator_collection_; | 385 return &layer_animator_collection_; |
| 385 } | 386 } |
| 386 | 387 |
| 387 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } | 388 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } |
| 388 | 389 |
| 390 UIScrollInputManager* scroll_input_manager() { |
| 391 return scroll_input_manager_.get(); |
| 392 } |
| 393 |
| 389 private: | 394 private: |
| 390 friend class base::RefCounted<Compositor>; | 395 friend class base::RefCounted<Compositor>; |
| 391 friend class CompositorLock; | 396 friend class CompositorLock; |
| 392 | 397 |
| 393 // Called by CompositorLock. | 398 // Called by CompositorLock. |
| 394 void UnlockCompositor(); | 399 void UnlockCompositor(); |
| 395 | 400 |
| 396 // Called to release any pending CompositorLock | 401 // Called to release any pending CompositorLock |
| 397 void CancelCompositorLock(); | 402 void CancelCompositorLock(); |
| 398 | 403 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 426 // layers on. | 431 // layers on. |
| 427 float device_scale_factor_; | 432 float device_scale_factor_; |
| 428 | 433 |
| 429 bool locks_will_time_out_; | 434 bool locks_will_time_out_; |
| 430 CompositorLock* compositor_lock_; | 435 CompositorLock* compositor_lock_; |
| 431 | 436 |
| 432 LayerAnimatorCollection layer_animator_collection_; | 437 LayerAnimatorCollection layer_animator_collection_; |
| 433 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | 438 scoped_refptr<cc::AnimationTimeline> animation_timeline_; |
| 434 | 439 |
| 435 gfx::ColorSpace color_space_; | 440 gfx::ColorSpace color_space_; |
| 441 std::unique_ptr<UIScrollInputManager> scroll_input_manager_; |
| 436 | 442 |
| 437 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 443 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 438 | 444 |
| 439 DISALLOW_COPY_AND_ASSIGN(Compositor); | 445 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 440 }; | 446 }; |
| 441 | 447 |
| 442 } // namespace ui | 448 } // namespace ui |
| 443 | 449 |
| 444 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |