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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 namespace cc { | 33 namespace cc { |
34 class ContextProvider; | 34 class ContextProvider; |
35 class Layer; | 35 class Layer; |
36 class LayerTreeDebugState; | 36 class LayerTreeDebugState; |
37 class LayerTreeHost; | 37 class LayerTreeHost; |
38 class RendererSettings; | 38 class RendererSettings; |
39 class SharedBitmapManager; | 39 class SharedBitmapManager; |
40 class SurfaceIdAllocator; | 40 class SurfaceIdAllocator; |
| 41 class TaskGraphRunner; |
41 } | 42 } |
42 | 43 |
43 namespace gfx { | 44 namespace gfx { |
44 class Rect; | 45 class Rect; |
45 class Size; | 46 class Size; |
46 } | 47 } |
47 | 48 |
48 namespace gpu { | 49 namespace gpu { |
49 class GpuMemoryBufferManager; | 50 class GpuMemoryBufferManager; |
50 struct Mailbox; | 51 struct Mailbox; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 92 |
92 // Returns the OpenGL target to use for image textures. | 93 // Returns the OpenGL target to use for image textures. |
93 virtual uint32 GetImageTextureTarget() = 0; | 94 virtual uint32 GetImageTextureTarget() = 0; |
94 | 95 |
95 // Gets the shared bitmap manager for software mode. | 96 // Gets the shared bitmap manager for software mode. |
96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 97 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
97 | 98 |
98 // Gets the GPU memory buffer manager. | 99 // Gets the GPU memory buffer manager. |
99 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 100 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
100 | 101 |
| 102 // Gets the task graph runner. |
| 103 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 104 |
101 // Creates a Surface ID allocator with a new namespace. | 105 // Creates a Surface ID allocator with a new namespace. |
102 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; | 106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; |
103 | 107 |
104 // Resize the display corresponding to this compositor to a particular size. | 108 // Resize the display corresponding to this compositor to a particular size. |
105 virtual void ResizeDisplay(ui::Compositor* compositor, | 109 virtual void ResizeDisplay(ui::Compositor* compositor, |
106 const gfx::Size& size) = 0; | 110 const gfx::Size& size) = 0; |
107 }; | 111 }; |
108 | 112 |
109 // This class represents a lock on the compositor, that can be used to prevent | 113 // This class represents a lock on the compositor, that can be used to prevent |
110 // commits to the compositor tree while we're waiting for an asynchronous | 114 // commits to the compositor tree while we're waiting for an asynchronous |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 LayerAnimatorCollection layer_animator_collection_; | 337 LayerAnimatorCollection layer_animator_collection_; |
334 | 338 |
335 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 339 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
336 | 340 |
337 DISALLOW_COPY_AND_ASSIGN(Compositor); | 341 DISALLOW_COPY_AND_ASSIGN(Compositor); |
338 }; | 342 }; |
339 | 343 |
340 } // namespace ui | 344 } // namespace ui |
341 | 345 |
342 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 346 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |