Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 1308913004: GPU Channel's now maintain a global order number for each processed IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge error Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698