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

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: rebase 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 170 // Checks if there is a RetireSyncPoint following a Flush.
171 // deferred message queue starting from the current processing message. 171 size_t MatchRetireSyncPointPattern(IPC::Message* current_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 172
176 // The lifetime of objects of this class is managed by a GpuChannelManager. 173 // The lifetime of objects of this class is managed by a GpuChannelManager.
177 // The GpuChannelManager destroy all the GpuChannels that they own when they 174 // The GpuChannelManager destroy all the GpuChannels that they own when they
178 // are destroyed. So a raw pointer is safe. 175 // are destroyed. So a raw pointer is safe.
179 GpuChannelManager* gpu_channel_manager_; 176 GpuChannelManager* gpu_channel_manager_;
180 177
181 scoped_ptr<IPC::SyncChannel> channel_; 178 scoped_ptr<IPC::SyncChannel> channel_;
182 179
183 uint64 messages_processed_; 180 uint64 messages_processed_;
184 181
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // that any WeakPtrs to Controller are invalidated before its members 226 // that any WeakPtrs to Controller are invalidated before its members
230 // variable's destructors are executed, rendering them invalid. 227 // variable's destructors are executed, rendering them invalid.
231 base::WeakPtrFactory<GpuChannel> weak_factory_; 228 base::WeakPtrFactory<GpuChannel> weak_factory_;
232 229
233 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 230 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
234 }; 231 };
235 232
236 } // namespace content 233 } // namespace content
237 234
238 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 235 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698