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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 int GenerateRouteID(); | 86 int GenerateRouteID(); |
87 void AddRoute(int32 routing_id, IPC::Listener* listener); | 87 void AddRoute(int32 routing_id, IPC::Listener* listener); |
88 void RemoveRoute(int32 routing_id); | 88 void RemoveRoute(int32 routing_id); |
89 | 89 |
90 gpu::gles2::ProgramCache* program_cache(); | 90 gpu::gles2::ProgramCache* program_cache(); |
91 | 91 |
92 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; } | 92 GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; } |
93 | 93 |
94 GpuChannel* LookupChannel(int32 client_id); | 94 GpuChannel* LookupChannel(int32 client_id); |
95 | 95 |
96 SyncPointManager* sync_point_manager() { return sync_point_manager_; } | 96 SyncPointManager* sync_point_manager() { return sync_point_manager_.get(); } |
97 | 97 |
98 gfx::GLSurface* GetDefaultOffscreenSurface(); | 98 gfx::GLSurface* GetDefaultOffscreenSurface(); |
99 | 99 |
100 private: | 100 private: |
101 struct ImageOperation { | 101 struct ImageOperation { |
102 ImageOperation(int32 sync_point, base::Closure callback); | 102 ImageOperation(int32 sync_point, base::Closure callback); |
103 ~ImageOperation(); | 103 ~ImageOperation(); |
104 | 104 |
105 int32 sync_point; | 105 int32 sync_point; |
106 base::Closure callback; | 106 base::Closure callback; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; | 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; |
148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
149 ImageOperationQueue image_operations_; | 149 ImageOperationQueue image_operations_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace content | 154 } // namespace content |
155 | 155 |
156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |