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

Side by Side Diff: gpu/ipc/service/gpu_channel.cc

Issue 1943513002: [Reland 1] Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 7 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 | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('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 #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
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698