| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // The compositor must be set to invisible when taking away a widget. | 292 // The compositor must be set to invisible when taking away a widget. |
| 293 gfx::AcceleratedWidget ReleaseAcceleratedWidget(); | 293 gfx::AcceleratedWidget ReleaseAcceleratedWidget(); |
| 294 gfx::AcceleratedWidget widget() const; | 294 gfx::AcceleratedWidget widget() const; |
| 295 | 295 |
| 296 #if defined(USE_AURA) | 296 #if defined(USE_AURA) |
| 297 // Sets the window for the compositor to render into on mus+ash. | 297 // Sets the window for the compositor to render into on mus+ash. |
| 298 void SetWindow(ui::Window* window); | 298 void SetWindow(ui::Window* window); |
| 299 ui::Window* window() const; | 299 ui::Window* window() const; |
| 300 #endif | 300 #endif |
| 301 | 301 |
| 302 cc::LayerTreeHost* layer_tree_host() { return host_.get(); } |
| 303 |
| 302 // Returns the vsync manager for this compositor. | 304 // Returns the vsync manager for this compositor. |
| 303 scoped_refptr<CompositorVSyncManager> vsync_manager() const; | 305 scoped_refptr<CompositorVSyncManager> vsync_manager() const; |
| 304 | 306 |
| 305 // Returns the main thread task runner this compositor uses. Users of the | 307 // Returns the main thread task runner this compositor uses. Users of the |
| 306 // compositor generally shouldn't use this. | 308 // compositor generally shouldn't use this. |
| 307 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const { | 309 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const { |
| 308 return task_runner_; | 310 return task_runner_; |
| 309 } | 311 } |
| 310 | 312 |
| 311 // Compositor does not own observers. It is the responsibility of the | 313 // Compositor does not own observers. It is the responsibility of the |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 gfx::ColorSpace color_space_; | 431 gfx::ColorSpace color_space_; |
| 430 | 432 |
| 431 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 433 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 432 | 434 |
| 433 DISALLOW_COPY_AND_ASSIGN(Compositor); | 435 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 434 }; | 436 }; |
| 435 | 437 |
| 436 } // namespace ui | 438 } // namespace ui |
| 437 | 439 |
| 438 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 440 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |