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

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

Issue 2482053002: Remove a DCHECK in GpuChannelMessageFilter (Closed)
Patch Set: +AwContentsTest Created 4 years, 1 month 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | no next file » | 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 void GpuChannelMessageFilter::OnFilterAdded(IPC::Channel* channel) { 455 void GpuChannelMessageFilter::OnFilterAdded(IPC::Channel* channel) {
456 DCHECK(!channel_); 456 DCHECK(!channel_);
457 channel_ = channel; 457 channel_ = channel;
458 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { 458 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) {
459 filter->OnFilterAdded(channel_); 459 filter->OnFilterAdded(channel_);
460 } 460 }
461 } 461 }
462 462
463 void GpuChannelMessageFilter::OnFilterRemoved() { 463 void GpuChannelMessageFilter::OnFilterRemoved() {
464 DCHECK(channel_);
465 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { 464 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) {
466 filter->OnFilterRemoved(); 465 filter->OnFilterRemoved();
467 } 466 }
468 channel_ = nullptr; 467 channel_ = nullptr;
469 peer_pid_ = base::kNullProcessId; 468 peer_pid_ = base::kNullProcessId;
470 } 469 }
471 470
472 void GpuChannelMessageFilter::OnChannelConnected(int32_t peer_pid) { 471 void GpuChannelMessageFilter::OnChannelConnected(int32_t peer_pid) {
473 DCHECK(peer_pid_ == base::kNullProcessId); 472 DCHECK(peer_pid_ == base::kNullProcessId);
474 peer_pid_ = peer_pid; 473 peer_pid_ = peer_pid;
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 1056
1058 return manager->gpu_memory_buffer_factory() 1057 return manager->gpu_memory_buffer_factory()
1059 ->AsImageFactory() 1058 ->AsImageFactory()
1060 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat, 1059 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat,
1061 client_id_, surface_handle); 1060 client_id_, surface_handle);
1062 } 1061 }
1063 } 1062 }
1064 } 1063 }
1065 1064
1066 } // namespace gpu 1065 } // namespace gpu
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698