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_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Try to match the messages pattern for GL SwapBuffers operation in the |
171 // deferred message queue starting from the current processing message. | 171 // deferred message queue starting from the current processing message. |
172 // Return the number of messages that matches the given pattern, e.g. | 172 // Return the number of messages that matches the given pattern, e.g. |
173 // SetLatencyInfo -> AsyncFlush -> Echo sequence. | 173 // AsyncFlush -> Echo sequence. |
174 size_t MatchSwapBufferMessagesPattern(IPC::Message* current_message); | 174 size_t MatchSwapBufferMessagesPattern(IPC::Message* current_message); |
175 | 175 |
176 // The lifetime of objects of this class is managed by a GpuChannelManager. | 176 // The lifetime of objects of this class is managed by a GpuChannelManager. |
177 // The GpuChannelManager destroy all the GpuChannels that they own when they | 177 // The GpuChannelManager destroy all the GpuChannels that they own when they |
178 // are destroyed. So a raw pointer is safe. | 178 // are destroyed. So a raw pointer is safe. |
179 GpuChannelManager* gpu_channel_manager_; | 179 GpuChannelManager* gpu_channel_manager_; |
180 | 180 |
181 scoped_ptr<IPC::SyncChannel> channel_; | 181 scoped_ptr<IPC::SyncChannel> channel_; |
182 | 182 |
183 uint64 messages_processed_; | 183 uint64 messages_processed_; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 size_t num_stubs_descheduled_; | 226 size_t num_stubs_descheduled_; |
227 | 227 |
228 bool allow_future_sync_points_; | 228 bool allow_future_sync_points_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 230 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace content | 233 } // namespace content |
234 | 234 |
235 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 235 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |