| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // Gets the shared bitmap manager for software mode. | 122 // Gets the shared bitmap manager for software mode. |
| 123 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 123 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 124 | 124 |
| 125 // Gets the GPU memory buffer manager. | 125 // Gets the GPU memory buffer manager. |
| 126 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 126 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 127 | 127 |
| 128 // Gets the task graph runner. | 128 // Gets the task graph runner. |
| 129 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 129 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 130 | 130 |
| 131 // Creates a Surface ID allocator with a new namespace. | 131 // Allocate a new client ID for the display compositor. |
| 132 virtual std::unique_ptr<cc::SurfaceIdAllocator> | 132 virtual uint32_t AllocateSurfaceClientId() = 0; |
| 133 CreateSurfaceIdAllocator() = 0; | |
| 134 | 133 |
| 135 // Gets the surface manager. | 134 // Gets the surface manager. |
| 136 virtual cc::SurfaceManager* GetSurfaceManager() = 0; | 135 virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
| 137 | 136 |
| 138 // Resize the display corresponding to this compositor to a particular size. | 137 // Resize the display corresponding to this compositor to a particular size. |
| 139 virtual void ResizeDisplay(ui::Compositor* compositor, | 138 virtual void ResizeDisplay(ui::Compositor* compositor, |
| 140 const gfx::Size& size) = 0; | 139 const gfx::Size& size) = 0; |
| 141 | 140 |
| 142 // Set the output color profile into which this compositor should render. | 141 // Set the output color profile into which this compositor should render. |
| 143 virtual void SetDisplayColorSpace(ui::Compositor* compositor, | 142 virtual void SetDisplayColorSpace(ui::Compositor* compositor, |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | 395 scoped_refptr<cc::AnimationTimeline> animation_timeline_; |
| 397 | 396 |
| 398 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 397 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 399 | 398 |
| 400 DISALLOW_COPY_AND_ASSIGN(Compositor); | 399 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 401 }; | 400 }; |
| 402 | 401 |
| 403 } // namespace ui | 402 } // namespace ui |
| 404 | 403 |
| 405 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 404 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |