| 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 26 matching lines...) Expand all Loading... |
| 37 class SingleThreadTaskRunner; | 37 class SingleThreadTaskRunner; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace cc { | 40 namespace cc { |
| 41 class AnimationTimeline; | 41 class AnimationTimeline; |
| 42 class ContextProvider; | 42 class ContextProvider; |
| 43 class Layer; | 43 class Layer; |
| 44 class LayerTreeDebugState; | 44 class LayerTreeDebugState; |
| 45 class LayerTreeHost; | 45 class LayerTreeHost; |
| 46 class RendererSettings; | 46 class RendererSettings; |
| 47 class SharedBitmapManager; | |
| 48 class SurfaceIdAllocator; | 47 class SurfaceIdAllocator; |
| 49 class SurfaceManager; | 48 class SurfaceManager; |
| 50 class TaskGraphRunner; | 49 class TaskGraphRunner; |
| 51 } | 50 } |
| 52 | 51 |
| 53 namespace gfx { | 52 namespace gfx { |
| 54 class Rect; | 53 class Rect; |
| 55 class ScrollOffset; | 54 class ScrollOffset; |
| 56 class Size; | 55 class Size; |
| 57 } | 56 } |
| 58 | 57 |
| 59 namespace gpu { | 58 namespace gpu { |
| 60 class GpuMemoryBufferManager; | 59 class GpuMemoryBufferManager; |
| 61 struct Mailbox; | |
| 62 } | 60 } |
| 63 | 61 |
| 64 namespace ui { | 62 namespace ui { |
| 65 | 63 |
| 66 class Compositor; | 64 class Compositor; |
| 67 class CompositorVSyncManager; | 65 class CompositorVSyncManager; |
| 68 class LatencyInfo; | 66 class LatencyInfo; |
| 69 class Layer; | 67 class Layer; |
| 70 class Reflector; | 68 class Reflector; |
| 71 class Texture; | 69 class Texture; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual void RemoveCompositor(Compositor* compositor) = 0; | 117 virtual void RemoveCompositor(Compositor* compositor) = 0; |
| 120 | 118 |
| 121 // When true, the factory uses test contexts that do not do real GL | 119 // When true, the factory uses test contexts that do not do real GL |
| 122 // operations. | 120 // operations. |
| 123 virtual bool DoesCreateTestContexts() = 0; | 121 virtual bool DoesCreateTestContexts() = 0; |
| 124 | 122 |
| 125 // Returns the OpenGL target to use for image textures. | 123 // Returns the OpenGL target to use for image textures. |
| 126 virtual uint32_t GetImageTextureTarget(gfx::BufferFormat format, | 124 virtual uint32_t GetImageTextureTarget(gfx::BufferFormat format, |
| 127 gfx::BufferUsage usage) = 0; | 125 gfx::BufferUsage usage) = 0; |
| 128 | 126 |
| 129 // Gets the shared bitmap manager for software mode. | |
| 130 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | |
| 131 | |
| 132 // Gets the GPU memory buffer manager. | 127 // Gets the GPU memory buffer manager. |
| 133 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 128 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 134 | 129 |
| 135 // Gets the task graph runner. | 130 // Gets the task graph runner. |
| 136 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 131 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 137 | 132 |
| 138 // Allocate a new client ID for the display compositor. | 133 // Allocate a new client ID for the display compositor. |
| 139 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; | 134 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; |
| 140 | 135 |
| 141 // Gets the surface manager. | 136 // Gets the surface manager. |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 gfx::ColorSpace color_space_; | 430 gfx::ColorSpace color_space_; |
| 436 | 431 |
| 437 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 432 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 438 | 433 |
| 439 DISALLOW_COPY_AND_ASSIGN(Compositor); | 434 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 440 }; | 435 }; |
| 441 | 436 |
| 442 } // namespace ui | 437 } // namespace ui |
| 443 | 438 |
| 444 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 439 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |