| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; | 384 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; |
| 385 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); | 385 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); |
| 386 const cc::RendererSettings& GetRendererSettings() const; | 386 const cc::RendererSettings& GetRendererSettings() const; |
| 387 | 387 |
| 388 LayerAnimatorCollection* layer_animator_collection() { | 388 LayerAnimatorCollection* layer_animator_collection() { |
| 389 return &layer_animator_collection_; | 389 return &layer_animator_collection_; |
| 390 } | 390 } |
| 391 | 391 |
| 392 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } | 392 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } |
| 393 | 393 |
| 394 // Returns a sequence number of a current compositor frame for use with UMA. |
| 395 int GetFrameNumber(); |
| 396 |
| 394 private: | 397 private: |
| 395 friend class base::RefCounted<Compositor>; | 398 friend class base::RefCounted<Compositor>; |
| 396 friend class CompositorLock; | 399 friend class CompositorLock; |
| 397 | 400 |
| 398 // Called by CompositorLock. | 401 // Called by CompositorLock. |
| 399 void UnlockCompositor(); | 402 void UnlockCompositor(); |
| 400 | 403 |
| 401 // Called to release any pending CompositorLock | 404 // Called to release any pending CompositorLock |
| 402 void CancelCompositorLock(); | 405 void CancelCompositorLock(); |
| 403 | 406 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 gfx::ColorSpace color_space_; | 446 gfx::ColorSpace color_space_; |
| 444 | 447 |
| 445 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 448 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 446 | 449 |
| 447 DISALLOW_COPY_AND_ASSIGN(Compositor); | 450 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 448 }; | 451 }; |
| 449 | 452 |
| 450 } // namespace ui | 453 } // namespace ui |
| 451 | 454 |
| 452 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 455 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |