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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Remove the channel for a particular renderer. | 76 // Remove the channel for a particular renderer. |
77 void RemoveChannel(int client_id); | 77 void RemoveChannel(int client_id); |
78 | 78 |
79 // Listener overrides. | 79 // Listener overrides. |
80 bool OnMessageReceived(const IPC::Message& msg) override; | 80 bool OnMessageReceived(const IPC::Message& msg) override; |
81 | 81 |
82 // Sender overrides. | 82 // Sender overrides. |
83 bool Send(IPC::Message* msg) override; | 83 bool Send(IPC::Message* msg) override; |
84 | 84 |
85 bool HandleMessagesScheduled(); | 85 uint32_t ProcessedOrderNumber(); |
86 uint64 MessagesProcessed(); | 86 uint32_t UnprocessedOrderNumber(); |
87 | 87 |
88 void LoseAllContexts(); | 88 void LoseAllContexts(); |
89 | 89 |
90 int GenerateRouteID(); | 90 int GenerateRouteID(); |
91 void AddRoute(int32 routing_id, IPC::Listener* listener); | 91 void AddRoute(int32 routing_id, IPC::Listener* listener); |
92 void RemoveRoute(int32 routing_id); | 92 void RemoveRoute(int32 routing_id); |
93 | 93 |
94 gpu::gles2::ProgramCache* program_cache(); | 94 gpu::gles2::ProgramCache* program_cache(); |
95 gpu::gles2::ShaderTranslatorCache* shader_translator_cache(); | 95 gpu::gles2::ShaderTranslatorCache* shader_translator_cache(); |
96 gpu::gles2::FramebufferCompletenessCache* framebuffer_completeness_cache(); | 96 gpu::gles2::FramebufferCompletenessCache* framebuffer_completeness_cache(); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // that any WeakPtrs to Controller are invalidated before its members | 179 // that any WeakPtrs to Controller are invalidated before its members |
180 // variable's destructors are executed, rendering them invalid. | 180 // variable's destructors are executed, rendering them invalid. |
181 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 181 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
182 | 182 |
183 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 183 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
184 }; | 184 }; |
185 | 185 |
186 } // namespace content | 186 } // namespace content |
187 | 187 |
188 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 188 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |