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

Side by Side Diff: content/gpu/gpu_render_thread.cc

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 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
« no previous file with comments | « content/gpu/gpu_info_collector_win.cc ('k') | content/gpu/media/fake_gl_video_device.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/gpu/gpu_render_thread.h" 5 #include "content/gpu/gpu_render_thread.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/gfx/gl/gl_context.h"
11 #include "app/gfx/gl/gl_implementation.h"
12 #include "app/win/scoped_com_initializer.h" 10 #include "app/win/scoped_com_initializer.h"
13 #include "base/command_line.h" 11 #include "base/command_line.h"
14 #include "base/threading/worker_pool.h" 12 #include "base/threading/worker_pool.h"
15 #include "build/build_config.h" 13 #include "build/build_config.h"
16 #include "chrome/common/child_process_logging.h" 14 #include "chrome/common/child_process_logging.h"
17 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
18 #include "content/common/child_process.h" 16 #include "content/common/child_process.h"
19 #include "content/common/gpu_messages.h" 17 #include "content/common/gpu_messages.h"
20 #include "content/gpu/gpu_child_thread.h" 18 #include "content/gpu/gpu_child_thread.h"
21 #include "content/gpu/gpu_info_collector.h" 19 #include "content/gpu/gpu_info_collector.h"
22 #include "content/gpu/gpu_watchdog_thread.h" 20 #include "content/gpu/gpu_watchdog_thread.h"
23 #include "ipc/ipc_channel_handle.h" 21 #include "ipc/ipc_channel_handle.h"
22 #include "ui/gfx/gl/gl_context.h"
23 #include "ui/gfx/gl/gl_implementation.h"
24 24
25 GpuRenderThread::GpuRenderThread(IPC::Message::Sender* browser_channel, 25 GpuRenderThread::GpuRenderThread(IPC::Message::Sender* browser_channel,
26 GpuWatchdogThread* gpu_watchdog_thread, 26 GpuWatchdogThread* gpu_watchdog_thread,
27 MessageLoop* io_message_loop, 27 MessageLoop* io_message_loop,
28 base::WaitableEvent* shutdown_event) 28 base::WaitableEvent* shutdown_event)
29 : io_message_loop_(io_message_loop), 29 : io_message_loop_(io_message_loop),
30 shutdown_event_(shutdown_event), 30 shutdown_event_(shutdown_event),
31 browser_channel_(browser_channel), 31 browser_channel_(browser_channel),
32 watchdog_thread_(gpu_watchdog_thread) { 32 watchdog_thread_(gpu_watchdog_thread) {
33 DCHECK(browser_channel); 33 DCHECK(browser_channel);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 void GpuRenderThread::OnDestroyCommandBuffer( 140 void GpuRenderThread::OnDestroyCommandBuffer(
141 int renderer_id, int32 renderer_view_id) { 141 int renderer_id, int32 renderer_view_id) {
142 GpuChannelMap::const_iterator iter = gpu_channels_.find(renderer_id); 142 GpuChannelMap::const_iterator iter = gpu_channels_.find(renderer_id);
143 if (iter == gpu_channels_.end()) 143 if (iter == gpu_channels_.end())
144 return; 144 return;
145 scoped_refptr<GpuChannel> channel = iter->second; 145 scoped_refptr<GpuChannel> channel = iter->second;
146 channel->DestroyCommandBufferByViewId(renderer_view_id); 146 channel->DestroyCommandBufferByViewId(renderer_view_id);
147 } 147 }
148 #endif 148 #endif
OLDNEW
« no previous file with comments | « content/gpu/gpu_info_collector_win.cc ('k') | content/gpu/media/fake_gl_video_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698