| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Remove the channel for a particular renderer. | 70 // Remove the channel for a particular renderer. |
| 71 void RemoveChannel(int client_id); | 71 void RemoveChannel(int client_id); |
| 72 | 72 |
| 73 // Listener overrides. | 73 // Listener overrides. |
| 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 75 | 75 |
| 76 // Sender overrides. | 76 // Sender overrides. |
| 77 virtual bool Send(IPC::Message* msg) OVERRIDE; | 77 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 78 | 78 |
| 79 bool HandleMessagesScheduled(); |
| 80 uint64 MessagesProcessed(); |
| 81 |
| 79 void LoseAllContexts(); | 82 void LoseAllContexts(); |
| 80 | 83 |
| 81 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 84 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
| 82 | 85 |
| 83 int GenerateRouteID(); | 86 int GenerateRouteID(); |
| 84 void AddRoute(int32 routing_id, IPC::Listener* listener); | 87 void AddRoute(int32 routing_id, IPC::Listener* listener); |
| 85 void RemoveRoute(int32 routing_id); | 88 void RemoveRoute(int32 routing_id); |
| 86 | 89 |
| 87 gpu::gles2::ProgramCache* program_cache(); | 90 gpu::gles2::ProgramCache* program_cache(); |
| 88 | 91 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; | 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; |
| 145 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
| 146 ImageOperationQueue image_operations_; | 149 ImageOperationQueue image_operations_; |
| 147 | 150 |
| 148 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 } // namespace content | 154 } // namespace content |
| 152 | 155 |
| 153 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |