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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 9667012: Fix --single-process mode issues with GpuChannelHostFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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 "content/common/gpu/client/gpu_channel_host.h" 5 #include "content/common/gpu/client/gpu_channel_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "content/common/gpu/client/command_buffer_proxy.h" 10 #include "content/common/gpu/client/command_buffer_proxy.h"
11 #include "content/common/gpu/gpu_messages.h" 11 #include "content/common/gpu/gpu_messages.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "ipc/ipc_sync_message_filter.h" 13 #include "ipc/ipc_sync_message_filter.h"
14 14
15 GpuChannelHostFactory* GpuChannelHostFactory::instance_ = NULL;
16
17 GpuChannelHostFactory::~GpuChannelHostFactory() {
18 DCHECK(!instance_);
19 }
20
21 using base::AutoLock; 15 using base::AutoLock;
22 using base::MessageLoopProxy; 16 using base::MessageLoopProxy;
23 17
24 GpuListenerInfo::GpuListenerInfo() { 18 GpuListenerInfo::GpuListenerInfo() {
25 } 19 }
26 20
27 GpuListenerInfo::~GpuListenerInfo() { 21 GpuListenerInfo::~GpuListenerInfo() {
28 } 22 }
29 23
30 GpuChannelHost::MessageFilter::MessageFilter(GpuChannelHost* parent) 24 GpuChannelHost::MessageFilter::MessageFilter(GpuChannelHost* parent)
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 &result))) { 305 &result))) {
312 return false; 306 return false;
313 } 307 }
314 return result; 308 return result;
315 } 309 }
316 310
317 void GpuChannelHost::ForciblyCloseChannel() { 311 void GpuChannelHost::ForciblyCloseChannel() {
318 Send(new GpuChannelMsg_CloseChannel()); 312 Send(new GpuChannelMsg_CloseChannel());
319 SetStateLost(); 313 SetStateLost();
320 } 314 }
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698