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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 30 matching lines...) Expand all
41 #if defined(TOOLKIT_GTK) 41 #if defined(TOOLKIT_GTK)
42 #include "ui/gfx/gtk_native_view_id_manager.h" 42 #include "ui/gfx/gtk_native_view_id_manager.h"
43 #endif 43 #endif
44 44
45 #if defined(OS_WIN) 45 #if defined(OS_WIN)
46 #include "ui/surface/accelerated_surface_win.h" 46 #include "ui/surface/accelerated_surface_win.h"
47 #endif 47 #endif
48 48
49 using content::BrowserThread; 49 using content::BrowserThread;
50 using content::ChildProcessHost; 50 using content::ChildProcessHost;
51 using content::GpuChildThread;
52 using content::GpuProcess;
51 using content::RenderProcessHost; 53 using content::RenderProcessHost;
52 using content::RenderWidgetHelper; 54 using content::RenderWidgetHelper;
53 using content::RenderWidgetHost; 55 using content::RenderWidgetHost;
54 using content::RenderWidgetHostImpl; 56 using content::RenderWidgetHostImpl;
55 57
56 bool GpuProcessHost::gpu_enabled_ = true; 58 bool GpuProcessHost::gpu_enabled_ = true;
57 bool GpuProcessHost::hardware_gpu_enabled_ = true; 59 bool GpuProcessHost::hardware_gpu_enabled_ = true;
58 60
59 namespace { 61 namespace {
60 62
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 953
952 void GpuProcessHost::CreateCommandBufferError( 954 void GpuProcessHost::CreateCommandBufferError(
953 const CreateCommandBufferCallback& callback, int32 route_id) { 955 const CreateCommandBufferCallback& callback, int32 route_id) {
954 callback.Run(route_id); 956 callback.Run(route_id);
955 } 957 }
956 958
957 void GpuProcessHost::CreateImageError( 959 void GpuProcessHost::CreateImageError(
958 const CreateImageCallback& callback, const gfx::Size size) { 960 const CreateImageCallback& callback, const gfx::Size size) {
959 callback.Run(size); 961 callback.Run(size);
960 } 962 }
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698