| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 namespace ui { | 56 namespace ui { |
| 57 | 57 |
| 58 class Compositor; | 58 class Compositor; |
| 59 class CompositorVSyncManager; | 59 class CompositorVSyncManager; |
| 60 class Layer; | 60 class Layer; |
| 61 class Reflector; | 61 class Reflector; |
| 62 class Texture; | 62 class Texture; |
| 63 struct LatencyInfo; | 63 struct LatencyInfo; |
| 64 | 64 |
| 65 const int kCompositorLockTimeoutMs = 67; |
| 66 |
| 65 // This class abstracts the creation of the 3D context for the compositor. It is | 67 // This class abstracts the creation of the 3D context for the compositor. It is |
| 66 // a global object. | 68 // a global object. |
| 67 class COMPOSITOR_EXPORT ContextFactory { | 69 class COMPOSITOR_EXPORT ContextFactory { |
| 68 public: | 70 public: |
| 69 virtual ~ContextFactory() {} | 71 virtual ~ContextFactory() {} |
| 70 | 72 |
| 71 // Creates an output surface for the given compositor. The factory may keep | 73 // Creates an output surface for the given compositor. The factory may keep |
| 72 // per-compositor data (e.g. a shared context), that needs to be cleaned up | 74 // per-compositor data (e.g. a shared context), that needs to be cleaned up |
| 73 // by calling RemoveCompositor when the compositor gets destroyed. | 75 // by calling RemoveCompositor when the compositor gets destroyed. |
| 74 virtual void CreateOutputSurface(base::WeakPtr<Compositor> compositor) = 0; | 76 virtual void CreateOutputSurface(base::WeakPtr<Compositor> compositor) = 0; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 cc::BeginFrameArgs missed_begin_frame_args_; | 356 cc::BeginFrameArgs missed_begin_frame_args_; |
| 355 | 357 |
| 356 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 358 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 357 | 359 |
| 358 DISALLOW_COPY_AND_ASSIGN(Compositor); | 360 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace ui | 363 } // namespace ui |
| 362 | 364 |
| 363 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 365 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |