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

Side by Side Diff: content/common/gpu/gpu_channel_manager.cc

Issue 7265009: Revert 90464 - Move app/win/* files to base/win/, ui/base/win and chrome/common/ directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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
« no previous file with comments | « content/browser/geolocation/win7_location_api_win.h ('k') | content/gpu/gpu_child_thread.cc » ('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) 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"
10 #include "base/command_line.h" 11 #include "base/command_line.h"
11 #include "base/threading/worker_pool.h" 12 #include "base/threading/worker_pool.h"
12 #include "base/win/scoped_com_initializer.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/common/child_process.h" 14 #include "content/common/child_process.h"
15 #include "content/common/gpu/gpu_messages.h" 15 #include "content/common/gpu/gpu_messages.h"
16 #include "ipc/ipc_channel_handle.h" 16 #include "ipc/ipc_channel_handle.h"
17 #include "ui/gfx/gl/gl_context.h" 17 #include "ui/gfx/gl/gl_context.h"
18 #include "ui/gfx/gl/gl_implementation.h" 18 #include "ui/gfx/gl/gl_implementation.h"
19 19
20 GpuChannelManager::GpuChannelManager(IPC::Message::Sender* browser_channel, 20 GpuChannelManager::GpuChannelManager(IPC::Message::Sender* browser_channel,
21 GpuWatchdog* watchdog, 21 GpuWatchdog* watchdog,
22 base::MessageLoopProxy* io_message_loop, 22 base::MessageLoopProxy* io_message_loop,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 void GpuChannelManager::LoseAllContexts() { 162 void GpuChannelManager::LoseAllContexts() {
163 MessageLoop::current()->PostTask( 163 MessageLoop::current()->PostTask(
164 FROM_HERE, method_factory_.NewRunnableMethod( 164 FROM_HERE, method_factory_.NewRunnableMethod(
165 &GpuChannelManager::OnLoseAllContexts)); 165 &GpuChannelManager::OnLoseAllContexts));
166 } 166 }
167 167
168 void GpuChannelManager::OnLoseAllContexts() { 168 void GpuChannelManager::OnLoseAllContexts() {
169 gpu_channels_.clear(); 169 gpu_channels_.clear();
170 } 170 }
OLDNEW
« no previous file with comments | « content/browser/geolocation/win7_location_api_win.h ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698