| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gpu_channel_manager.h" | 5 #include "content/common/gpu/gpu_channel_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/win/scoped_com_initializer.h" | |
| 11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 12 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
| 13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 14 #include "content/common/child_process.h" | 13 #include "content/common/child_process.h" |
| 15 #include "content/common/gpu/gpu_messages.h" | 14 #include "content/common/gpu/gpu_messages.h" |
| 16 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
| 17 #include "ui/gfx/gl/gl_context.h" | 16 #include "ui/gfx/gl/gl_context.h" |
| 18 #include "ui/gfx/gl/gl_implementation.h" | 17 #include "ui/gfx/gl/gl_implementation.h" |
| 19 | 18 |
| 20 GpuChannelManager::GpuChannelManager(IPC::Message::Sender* browser_channel, | 19 GpuChannelManager::GpuChannelManager(IPC::Message::Sender* browser_channel, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 160 |
| 162 void GpuChannelManager::LoseAllContexts() { | 161 void GpuChannelManager::LoseAllContexts() { |
| 163 MessageLoop::current()->PostTask( | 162 MessageLoop::current()->PostTask( |
| 164 FROM_HERE, method_factory_.NewRunnableMethod( | 163 FROM_HERE, method_factory_.NewRunnableMethod( |
| 165 &GpuChannelManager::OnLoseAllContexts)); | 164 &GpuChannelManager::OnLoseAllContexts)); |
| 166 } | 165 } |
| 167 | 166 |
| 168 void GpuChannelManager::OnLoseAllContexts() { | 167 void GpuChannelManager::OnLoseAllContexts() { |
| 169 gpu_channels_.clear(); | 168 gpu_channels_.clear(); |
| 170 } | 169 } |
| OLD | NEW |