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 "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 Loading... |
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 } |
OLD | NEW |