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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // Gets the task graph runner. | 134 // Gets the task graph runner. |
135 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 135 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
136 | 136 |
137 // Allocate a new client ID for the display compositor. | 137 // Allocate a new client ID for the display compositor. |
138 virtual uint32_t AllocateSurfaceClientId() = 0; | 138 virtual uint32_t AllocateSurfaceClientId() = 0; |
139 | 139 |
140 // Gets the surface manager. | 140 // Gets the surface manager. |
141 virtual cc::SurfaceManager* GetSurfaceManager() = 0; | 141 virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
142 | 142 |
| 143 // Inform the display corresponding to this compositor if it is visible. When |
| 144 // false it does not need to produce any frames. Visibility is reset for each |
| 145 // call to CreateOutputSurface. |
| 146 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0; |
| 147 |
143 // Resize the display corresponding to this compositor to a particular size. | 148 // Resize the display corresponding to this compositor to a particular size. |
144 virtual void ResizeDisplay(ui::Compositor* compositor, | 149 virtual void ResizeDisplay(ui::Compositor* compositor, |
145 const gfx::Size& size) = 0; | 150 const gfx::Size& size) = 0; |
146 | 151 |
147 // Set the output color profile into which this compositor should render. | 152 // Set the output color profile into which this compositor should render. |
148 virtual void SetDisplayColorSpace(ui::Compositor* compositor, | 153 virtual void SetDisplayColorSpace(ui::Compositor* compositor, |
149 const gfx::ColorSpace& color_space) = 0; | 154 const gfx::ColorSpace& color_space) = 0; |
150 | 155 |
151 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, | 156 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, |
152 base::TimeDelta interval) = 0; | 157 base::TimeDelta interval) = 0; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | 429 scoped_refptr<cc::AnimationTimeline> animation_timeline_; |
425 | 430 |
426 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 431 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
427 | 432 |
428 DISALLOW_COPY_AND_ASSIGN(Compositor); | 433 DISALLOW_COPY_AND_ASSIGN(Compositor); |
429 }; | 434 }; |
430 | 435 |
431 } // namespace ui | 436 } // namespace ui |
432 | 437 |
433 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 438 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |