| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 class SkBitmap; | 28 class SkBitmap; |
| 29 | 29 |
| 30 namespace base { | 30 namespace base { |
| 31 class MessageLoopProxy; | 31 class MessageLoopProxy; |
| 32 class RunLoop; | 32 class RunLoop; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace cc { | 35 namespace cc { |
| 36 class ContextProvider; | 36 class ContextProvider; |
| 37 class GpuMemoryBufferManager; | |
| 38 class Layer; | 37 class Layer; |
| 39 class LayerTreeDebugState; | 38 class LayerTreeDebugState; |
| 40 class LayerTreeHost; | 39 class LayerTreeHost; |
| 41 class SharedBitmapManager; | 40 class SharedBitmapManager; |
| 42 class SurfaceIdAllocator; | 41 class SurfaceIdAllocator; |
| 43 } | 42 } |
| 44 | 43 |
| 45 namespace gfx { | 44 namespace gfx { |
| 46 class Rect; | 45 class Rect; |
| 47 class Size; | 46 class Size; |
| 48 } | 47 } |
| 49 | 48 |
| 50 namespace gpu { | 49 namespace gpu { |
| 50 class GpuMemoryBufferManager; |
| 51 struct Mailbox; | 51 struct Mailbox; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace ui { | 54 namespace ui { |
| 55 | 55 |
| 56 class Compositor; | 56 class Compositor; |
| 57 class CompositorVSyncManager; | 57 class CompositorVSyncManager; |
| 58 class Layer; | 58 class Layer; |
| 59 class Reflector; | 59 class Reflector; |
| 60 class Texture; | 60 class Texture; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 89 virtual void RemoveCompositor(Compositor* compositor) = 0; | 89 virtual void RemoveCompositor(Compositor* compositor) = 0; |
| 90 | 90 |
| 91 // When true, the factory uses test contexts that do not do real GL | 91 // When true, the factory uses test contexts that do not do real GL |
| 92 // operations. | 92 // operations. |
| 93 virtual bool DoesCreateTestContexts() = 0; | 93 virtual bool DoesCreateTestContexts() = 0; |
| 94 | 94 |
| 95 // Gets the shared bitmap manager for software mode. | 95 // Gets the shared bitmap manager for software mode. |
| 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 97 | 97 |
| 98 // Gets the GPU memory buffer manager. | 98 // Gets the GPU memory buffer manager. |
| 99 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 99 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 100 | 100 |
| 101 // Gets the compositor message loop, or NULL if not using threaded | 101 // Gets the compositor message loop, or NULL if not using threaded |
| 102 // compositing. | 102 // compositing. |
| 103 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0; | 103 virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0; |
| 104 | 104 |
| 105 // Creates a Surface ID allocator with a new namespace. | 105 // Creates a Surface ID allocator with a new namespace. |
| 106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; | 106 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 // This class represents a lock on the compositor, that can be used to prevent | 109 // This class represents a lock on the compositor, that can be used to prevent |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 LayerAnimatorCollection layer_animator_collection_; | 340 LayerAnimatorCollection layer_animator_collection_; |
| 341 | 341 |
| 342 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 342 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 343 | 343 |
| 344 DISALLOW_COPY_AND_ASSIGN(Compositor); | 344 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 } // namespace ui | 347 } // namespace ui |
| 348 | 348 |
| 349 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 349 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |