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

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

Issue 619453002: gpu: Remove Echo and SwapCompletion GL interfacess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tits
Patch Set: remove comment Created 6 years, 2 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
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_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const GPUCreateCommandBufferConfig& init_params, 160 const GPUCreateCommandBufferConfig& init_params,
161 int32 route_id, 161 int32 route_id,
162 bool* succeeded); 162 bool* succeeded);
163 void OnDestroyCommandBuffer(int32 route_id); 163 void OnDestroyCommandBuffer(int32 route_id);
164 void OnDevToolsStartEventsRecording(int32 route_id, bool* succeeded); 164 void OnDevToolsStartEventsRecording(int32 route_id, bool* succeeded);
165 void OnDevToolsStopEventsRecording(); 165 void OnDevToolsStopEventsRecording();
166 166
167 // Decrement the count of unhandled IPC messages and defer preemption. 167 // Decrement the count of unhandled IPC messages and defer preemption.
168 void MessageProcessed(); 168 void MessageProcessed();
169 169
170 // Try to match the messages pattern for GL SwapBuffers operation in the
171 // deferred message queue starting from the current processing message.
172 // Return the number of messages that matches the given pattern, e.g.
173 // AsyncFlush -> Echo sequence.
174 size_t MatchSwapBufferMessagesPattern(IPC::Message* current_message);
175
176 // The lifetime of objects of this class is managed by a GpuChannelManager. 170 // The lifetime of objects of this class is managed by a GpuChannelManager.
177 // The GpuChannelManager destroy all the GpuChannels that they own when they 171 // The GpuChannelManager destroy all the GpuChannels that they own when they
178 // are destroyed. So a raw pointer is safe. 172 // are destroyed. So a raw pointer is safe.
179 GpuChannelManager* gpu_channel_manager_; 173 GpuChannelManager* gpu_channel_manager_;
180 174
181 scoped_ptr<IPC::SyncChannel> channel_; 175 scoped_ptr<IPC::SyncChannel> channel_;
182 176
183 uint64 messages_processed_; 177 uint64 messages_processed_;
184 178
185 // Whether the processing of IPCs on this channel is stalled and we should 179 // Whether the processing of IPCs on this channel is stalled and we should
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // that any WeakPtrs to Controller are invalidated before its members 223 // that any WeakPtrs to Controller are invalidated before its members
230 // variable's destructors are executed, rendering them invalid. 224 // variable's destructors are executed, rendering them invalid.
231 base::WeakPtrFactory<GpuChannel> weak_factory_; 225 base::WeakPtrFactory<GpuChannel> weak_factory_;
232 226
233 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 227 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
234 }; 228 };
235 229
236 } // namespace content 230 } // namespace content
237 231
238 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 232 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698