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

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

Issue 8382021: Move resource_codes to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 #include "content/browser/gpu/gpu_data_manager.h" 17 #include "content/browser/gpu/gpu_data_manager.h"
18 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 18 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
19 #include "content/browser/renderer_host/render_widget_host.h" 19 #include "content/browser/renderer_host/render_widget_host.h"
20 #include "content/browser/renderer_host/render_widget_host_view.h" 20 #include "content/browser/renderer_host/render_widget_host_view.h"
21 #include "content/common/gpu/gpu_messages.h" 21 #include "content/common/gpu/gpu_messages.h"
22 #include "content/common/result_codes.h"
23 #include "content/gpu/gpu_child_thread.h" 22 #include "content/gpu/gpu_child_thread.h"
24 #include "content/gpu/gpu_process.h" 23 #include "content/gpu/gpu_process.h"
25 #include "content/public/common/content_switches.h" 24 #include "content/public/common/content_switches.h"
25 #include "content/public/common/result_codes.h"
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
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 scoped_ptr<EstablishChannelCallback> wrapped_callback(callback); 609 scoped_ptr<EstablishChannelCallback> wrapped_callback(callback);
610 wrapped_callback->Run(channel_handle, renderer_process_for_gpu, gpu_info); 610 wrapped_callback->Run(channel_handle, renderer_process_for_gpu, gpu_info);
611 } 611 }
612 612
613 void GpuProcessHost::CreateCommandBufferError( 613 void GpuProcessHost::CreateCommandBufferError(
614 CreateCommandBufferCallback* callback, int32 route_id) { 614 CreateCommandBufferCallback* callback, int32 route_id) {
615 scoped_ptr<GpuProcessHost::CreateCommandBufferCallback> 615 scoped_ptr<GpuProcessHost::CreateCommandBufferCallback>
616 wrapped_callback(callback); 616 wrapped_callback(callback);
617 callback->Run(route_id); 617 callback->Run(route_id);
618 } 618 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698