| 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 <string> | 10 #include <string> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace cc { | 38 namespace cc { |
| 39 class AnimationTimeline; | 39 class AnimationTimeline; |
| 40 class ContextProvider; | 40 class ContextProvider; |
| 41 class Layer; | 41 class Layer; |
| 42 class LayerTreeDebugState; | 42 class LayerTreeDebugState; |
| 43 class LayerTreeHost; | 43 class LayerTreeHost; |
| 44 class RendererSettings; | 44 class RendererSettings; |
| 45 class SharedBitmapManager; | 45 class SharedBitmapManager; |
| 46 class SurfaceIdAllocator; | 46 class SurfaceIdAllocator; |
| 47 class SurfaceManager; |
| 47 class TaskGraphRunner; | 48 class TaskGraphRunner; |
| 48 } | 49 } |
| 49 | 50 |
| 50 namespace gfx { | 51 namespace gfx { |
| 51 class Rect; | 52 class Rect; |
| 52 class Size; | 53 class Size; |
| 53 } | 54 } |
| 54 | 55 |
| 55 namespace gpu { | 56 namespace gpu { |
| 56 class GpuMemoryBufferManager; | 57 class GpuMemoryBufferManager; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 105 |
| 105 // Gets the shared bitmap manager for software mode. | 106 // Gets the shared bitmap manager for software mode. |
| 106 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 107 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 107 | 108 |
| 108 // Gets the GPU memory buffer manager. | 109 // Gets the GPU memory buffer manager. |
| 109 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 110 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 110 | 111 |
| 111 // Gets the task graph runner. | 112 // Gets the task graph runner. |
| 112 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 113 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 113 | 114 |
| 114 // Creates a Surface ID allocator with a new namespace. | 115 // Creates a Surface ID allocator with a new namespace, registered with |
| 116 // this context factory's surface manager. |
| 115 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; | 117 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; |
| 116 | 118 |
| 119 virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
| 120 |
| 117 // Resize the display corresponding to this compositor to a particular size. | 121 // Resize the display corresponding to this compositor to a particular size. |
| 118 virtual void ResizeDisplay(ui::Compositor* compositor, | 122 virtual void ResizeDisplay(ui::Compositor* compositor, |
| 119 const gfx::Size& size) = 0; | 123 const gfx::Size& size) = 0; |
| 120 }; | 124 }; |
| 121 | 125 |
| 122 // This class represents a lock on the compositor, that can be used to prevent | 126 // This class represents a lock on the compositor, that can be used to prevent |
| 123 // commits to the compositor tree while we're waiting for an asynchronous | 127 // commits to the compositor tree while we're waiting for an asynchronous |
| 124 // event. The typical use case is when waiting for a renderer to produce a frame | 128 // event. The typical use case is when waiting for a renderer to produce a frame |
| 125 // at the right size. The caller keeps a reference on this object, and drops the | 129 // at the right size. The caller keeps a reference on this object, and drops the |
| 126 // reference once it desires to release the lock. | 130 // reference once it desires to release the lock. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 cc::BeginFrameArgs missed_begin_frame_args_; | 384 cc::BeginFrameArgs missed_begin_frame_args_; |
| 381 | 385 |
| 382 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 386 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 383 | 387 |
| 384 DISALLOW_COPY_AND_ASSIGN(Compositor); | 388 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 385 }; | 389 }; |
| 386 | 390 |
| 387 } // namespace ui | 391 } // namespace ui |
| 388 | 392 |
| 389 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 393 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |