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