Chromium Code Reviews| 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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 virtual scoped_refptr<cc::ContextProvider> | 87 virtual scoped_refptr<cc::ContextProvider> |
| 88 SharedMainThreadContextProvider() = 0; | 88 SharedMainThreadContextProvider() = 0; |
| 89 | 89 |
| 90 // Destroys per-compositor data. | 90 // Destroys per-compositor data. |
| 91 virtual void RemoveCompositor(Compositor* compositor) = 0; | 91 virtual void RemoveCompositor(Compositor* compositor) = 0; |
| 92 | 92 |
| 93 // When true, the factory uses test contexts that do not do real GL | 93 // When true, the factory uses test contexts that do not do real GL |
| 94 // operations. | 94 // operations. |
| 95 virtual bool DoesCreateTestContexts() = 0; | 95 virtual bool DoesCreateTestContexts() = 0; |
| 96 | 96 |
| 97 // Returns the OpenGL target to use for image textures. | 97 // Returns the OpenGL target to use for mapable image textures. |
| 98 virtual uint32 GetImageTextureTarget() = 0; | 98 virtual uint32 GetMapImageTextureTarget() = 0; |
| 99 | |
| 100 // Returns the OpenGL target to use for persistent-mapable image textures. | |
| 101 virtual uint32 GetPersistentMapImageTextureTarget() = 0; | |
|
reveman
2015/05/20 14:26:08
Same here. Having a different function for each co
| |
| 99 | 102 |
| 100 // Gets the shared bitmap manager for software mode. | 103 // Gets the shared bitmap manager for software mode. |
| 101 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 104 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 102 | 105 |
| 103 // Gets the GPU memory buffer manager. | 106 // Gets the GPU memory buffer manager. |
| 104 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 107 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 105 | 108 |
| 106 // Gets the task graph runner. | 109 // Gets the task graph runner. |
| 107 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 110 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 108 | 111 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 cc::BeginFrameArgs missed_begin_frame_args_; | 359 cc::BeginFrameArgs missed_begin_frame_args_; |
| 357 | 360 |
| 358 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 361 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 359 | 362 |
| 360 DISALLOW_COPY_AND_ASSIGN(Compositor); | 363 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 361 }; | 364 }; |
| 362 | 365 |
| 363 } // namespace ui | 366 } // namespace ui |
| 364 | 367 |
| 365 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 368 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |