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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 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/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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 15 matching lines...) Expand all
26 #include "ipc/ipc_channel_handle.h" 26 #include "ipc/ipc_channel_handle.h"
27 #include "ipc/ipc_switches.h" 27 #include "ipc/ipc_switches.h"
28 #include "ui/gfx/gl/gl_context.h" 28 #include "ui/gfx/gl/gl_context.h"
29 #include "ui/gfx/gl/gl_implementation.h" 29 #include "ui/gfx/gl/gl_implementation.h"
30 #include "ui/gfx/gl/gl_switches.h" 30 #include "ui/gfx/gl/gl_switches.h"
31 31
32 #if defined(TOOLKIT_USES_GTK) 32 #if defined(TOOLKIT_USES_GTK)
33 #include "ui/gfx/gtk_native_view_id_manager.h" 33 #include "ui/gfx/gtk_native_view_id_manager.h"
34 #endif 34 #endif
35 35
36 using content::BrowserThread;
37
36 bool GpuProcessHost::gpu_enabled_ = true; 38 bool GpuProcessHost::gpu_enabled_ = true;
37 39
38 namespace { 40 namespace {
39 41
40 enum GPUProcessLifetimeEvent { 42 enum GPUProcessLifetimeEvent {
41 LAUNCHED, 43 LAUNCHED,
42 DIED_FIRST_TIME, 44 DIED_FIRST_TIME,
43 DIED_SECOND_TIME, 45 DIED_SECOND_TIME,
44 DIED_THIRD_TIME, 46 DIED_THIRD_TIME,
45 DIED_FOURTH_TIME, 47 DIED_FOURTH_TIME,
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 scoped_ptr<EstablishChannelCallback> wrapped_callback(callback); 611 scoped_ptr<EstablishChannelCallback> wrapped_callback(callback);
610 wrapped_callback->Run(channel_handle, renderer_process_for_gpu, gpu_info); 612 wrapped_callback->Run(channel_handle, renderer_process_for_gpu, gpu_info);
611 } 613 }
612 614
613 void GpuProcessHost::CreateCommandBufferError( 615 void GpuProcessHost::CreateCommandBufferError(
614 CreateCommandBufferCallback* callback, int32 route_id) { 616 CreateCommandBufferCallback* callback, int32 route_id) {
615 scoped_ptr<GpuProcessHost::CreateCommandBufferCallback> 617 scoped_ptr<GpuProcessHost::CreateCommandBufferCallback>
616 wrapped_callback(callback); 618 wrapped_callback(callback);
617 callback->Run(route_id); 619 callback->Run(route_id);
618 } 620 }
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698