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

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

Issue 23452016: Fix names of in-process threads, tidy gpu DEPS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps for webview Created 7 years, 3 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/DEPS ('k') | content/content.gyp » ('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) 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/base64.h" 7 #include "base/base64.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/debug/trace_event.h" 13 #include "base/debug/trace_event.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/sha1.h" 17 #include "base/sha1.h"
18 #include "base/threading/thread.h" 18 #include "base/threading/thread.h"
19 #include "content/browser/browser_child_process_host_impl.h" 19 #include "content/browser/browser_child_process_host_impl.h"
20 #include "content/browser/gpu/gpu_data_manager_impl.h" 20 #include "content/browser/gpu/gpu_data_manager_impl.h"
21 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 21 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
22 #include "content/browser/gpu/shader_disk_cache.h" 22 #include "content/browser/gpu/shader_disk_cache.h"
23 #include "content/browser/renderer_host/render_widget_helper.h" 23 #include "content/browser/renderer_host/render_widget_helper.h"
24 #include "content/browser/renderer_host/render_widget_host_impl.h" 24 #include "content/browser/renderer_host/render_widget_host_impl.h"
25 #include "content/common/child_process_host_impl.h" 25 #include "content/common/child_process_host_impl.h"
26 #include "content/common/gpu/gpu_messages.h" 26 #include "content/common/gpu/gpu_messages.h"
27 #include "content/common/view_messages.h" 27 #include "content/common/view_messages.h"
28 #include "content/gpu/gpu_child_thread.h"
29 #include "content/gpu/gpu_process.h"
30 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" 28 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
31 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
33 #include "content/public/browser/render_process_host.h" 31 #include "content/public/browser/render_process_host.h"
34 #include "content/public/browser/render_widget_host_view.h" 32 #include "content/public/browser/render_widget_host_view.h"
35 #include "content/public/common/content_client.h" 33 #include "content/public/common/content_client.h"
36 #include "content/public/common/content_switches.h" 34 #include "content/public/common/content_switches.h"
37 #include "content/public/common/result_codes.h" 35 #include "content/public/common/result_codes.h"
38 #include "gpu/command_buffer/service/gpu_switches.h" 36 #include "gpu/command_buffer/service/gpu_switches.h"
39 #include "ipc/ipc_channel_handle.h" 37 #include "ipc/ipc_channel_handle.h"
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1242 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1245 ClientIdToShaderCacheMap::iterator iter = 1243 ClientIdToShaderCacheMap::iterator iter =
1246 client_id_to_shader_cache_.find(client_id); 1244 client_id_to_shader_cache_.find(client_id);
1247 // If the cache doesn't exist then this is an off the record profile. 1245 // If the cache doesn't exist then this is an off the record profile.
1248 if (iter == client_id_to_shader_cache_.end()) 1246 if (iter == client_id_to_shader_cache_.end())
1249 return; 1247 return;
1250 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1248 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1251 } 1249 }
1252 1250
1253 } // namespace content 1251 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698