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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual scoped_refptr<cc::ContextProvider> | 82 virtual scoped_refptr<cc::ContextProvider> |
83 SharedMainThreadContextProvider() = 0; | 83 SharedMainThreadContextProvider() = 0; |
84 | 84 |
85 // Destroys per-compositor data. | 85 // Destroys per-compositor data. |
86 virtual void RemoveCompositor(Compositor* compositor) = 0; | 86 virtual void RemoveCompositor(Compositor* compositor) = 0; |
87 | 87 |
88 // When true, the factory uses test contexts that do not do real GL | 88 // When true, the factory uses test contexts that do not do real GL |
89 // operations. | 89 // operations. |
90 virtual bool DoesCreateTestContexts() = 0; | 90 virtual bool DoesCreateTestContexts() = 0; |
91 | 91 |
| 92 // Returns the OpenGL target to use for image textures. |
| 93 virtual uint32 GetImageTextureTarget() = 0; |
| 94 |
92 // Gets the shared bitmap manager for software mode. | 95 // Gets the shared bitmap manager for software mode. |
93 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 96 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
94 | 97 |
95 // Gets the GPU memory buffer manager. | 98 // Gets the GPU memory buffer manager. |
96 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 99 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
97 | 100 |
98 // Creates a Surface ID allocator with a new namespace. | 101 // Creates a Surface ID allocator with a new namespace. |
99 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; | 102 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; |
100 | 103 |
101 // Resize the display corresponding to this compositor to a particular size. | 104 // Resize the display corresponding to this compositor to a particular size. |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 LayerAnimatorCollection layer_animator_collection_; | 326 LayerAnimatorCollection layer_animator_collection_; |
324 | 327 |
325 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 328 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
326 | 329 |
327 DISALLOW_COPY_AND_ASSIGN(Compositor); | 330 DISALLOW_COPY_AND_ASSIGN(Compositor); |
328 }; | 331 }; |
329 | 332 |
330 } // namespace ui | 333 } // namespace ui |
331 | 334 |
332 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 335 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |