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 #include "gpu/ipc/service/gpu_channel.h" | 5 #include "gpu/ipc/service/gpu_channel.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 if (scheduled_) | 233 if (scheduled_) |
234 channel_->PostHandleMessage(this); | 234 channel_->PostHandleMessage(this); |
235 | 235 |
236 sync_point_order_data_->PauseProcessingOrderNumber( | 236 sync_point_order_data_->PauseProcessingOrderNumber( |
237 channel_messages_.front()->order_number); | 237 channel_messages_.front()->order_number); |
238 } | 238 } |
239 | 239 |
240 void GpuChannelMessageQueue::FinishMessageProcessing() { | 240 void GpuChannelMessageQueue::FinishMessageProcessing() { |
241 base::AutoLock auto_lock(channel_lock_); | 241 base::AutoLock auto_lock(channel_lock_); |
242 DCHECK(!channel_messages_.empty()); | 242 DCHECK(!channel_messages_.empty()); |
243 DCHECK(scheduled_); | |
erikchen
2016/05/03 17:24:14
This assertion is no longer valid, since OnWaitSyn
| |
244 | 243 |
245 sync_point_order_data_->FinishProcessingOrderNumber( | 244 sync_point_order_data_->FinishProcessingOrderNumber( |
246 channel_messages_.front()->order_number); | 245 channel_messages_.front()->order_number); |
247 channel_messages_.pop_front(); | 246 channel_messages_.pop_front(); |
248 | 247 |
249 if (!channel_messages_.empty()) | 248 if (!channel_messages_.empty()) |
250 channel_->PostHandleMessage(this); | 249 channel_->PostHandleMessage(this); |
251 | 250 |
252 if (preempting_flag_) { | 251 if (preempting_flag_) { |
253 io_task_runner_->PostTask( | 252 io_task_runner_->PostTask( |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1049 ->CreateImageForGpuMemoryBuffer(handle, | 1048 ->CreateImageForGpuMemoryBuffer(handle, |
1050 size, | 1049 size, |
1051 format, | 1050 format, |
1052 internalformat, | 1051 internalformat, |
1053 client_id_); | 1052 client_id_); |
1054 } | 1053 } |
1055 } | 1054 } |
1056 } | 1055 } |
1057 | 1056 |
1058 } // namespace gpu | 1057 } // namespace gpu |
OLD | NEW |