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

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

Issue 2259903002: Enforce capability spec renderer <--> browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/mojo/merge_dictionary.h » ('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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 20 matching lines...) Expand all
31 #include "content/browser/gpu/compositor_util.h" 31 #include "content/browser/gpu/compositor_util.h"
32 #include "content/browser/gpu/gpu_data_manager_impl.h" 32 #include "content/browser/gpu/gpu_data_manager_impl.h"
33 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 33 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
34 #include "content/browser/gpu/shader_disk_cache.h" 34 #include "content/browser/gpu/shader_disk_cache.h"
35 #include "content/browser/mojo/mojo_shell_context.h" 35 #include "content/browser/mojo/mojo_shell_context.h"
36 #include "content/browser/renderer_host/render_widget_host_impl.h" 36 #include "content/browser/renderer_host/render_widget_host_impl.h"
37 #include "content/common/child_process_host_impl.h" 37 #include "content/common/child_process_host_impl.h"
38 #include "content/common/establish_channel_params.h" 38 #include "content/common/establish_channel_params.h"
39 #include "content/common/gpu_host_messages.h" 39 #include "content/common/gpu_host_messages.h"
40 #include "content/common/in_process_child_thread_params.h" 40 #include "content/common/in_process_child_thread_params.h"
41 #include "content/common/mojo/constants.h"
42 #include "content/common/mojo/mojo_child_connection.h" 41 #include "content/common/mojo/mojo_child_connection.h"
43 #include "content/common/view_messages.h" 42 #include "content/common/view_messages.h"
44 #include "content/public/browser/browser_thread.h" 43 #include "content/public/browser/browser_thread.h"
45 #include "content/public/browser/content_browser_client.h" 44 #include "content/public/browser/content_browser_client.h"
46 #include "content/public/browser/gpu_utils.h" 45 #include "content/public/browser/gpu_utils.h"
47 #include "content/public/browser/render_process_host.h" 46 #include "content/public/browser/render_process_host.h"
48 #include "content/public/browser/render_widget_host_view.h" 47 #include "content/public/browser/render_widget_host_view.h"
49 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 48 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
50 #include "content/public/common/connection_filter.h" 49 #include "content/public/common/connection_filter.h"
51 #include "content/public/common/content_client.h" 50 #include "content/public/common/content_client.h"
52 #include "content/public/common/content_switches.h" 51 #include "content/public/common/content_switches.h"
53 #include "content/public/common/mojo_channel_switches.h" 52 #include "content/public/common/mojo_channel_switches.h"
54 #include "content/public/common/mojo_shell_connection.h" 53 #include "content/public/common/mojo_shell_connection.h"
55 #include "content/public/common/result_codes.h" 54 #include "content/public/common/result_codes.h"
56 #include "content/public/common/sandbox_type.h" 55 #include "content/public/common/sandbox_type.h"
57 #include "content/public/common/sandboxed_process_launcher_delegate.h" 56 #include "content/public/common/sandboxed_process_launcher_delegate.h"
57 #include "content/public/common/service_names.h"
58 #include "gpu/command_buffer/service/gpu_preferences.h" 58 #include "gpu/command_buffer/service/gpu_preferences.h"
59 #include "gpu/command_buffer/service/gpu_switches.h" 59 #include "gpu/command_buffer/service/gpu_switches.h"
60 #include "gpu/ipc/service/switches.h" 60 #include "gpu/ipc/service/switches.h"
61 #include "ipc/ipc_channel_handle.h" 61 #include "ipc/ipc_channel_handle.h"
62 #include "ipc/ipc_switches.h" 62 #include "ipc/ipc_switches.h"
63 #include "ipc/message_filter.h" 63 #include "ipc/message_filter.h"
64 #include "media/base/media_switches.h" 64 #include "media/base/media_switches.h"
65 #include "mojo/edk/embedder/embedder.h" 65 #include "mojo/edk/embedder/embedder.h"
66 #include "services/shell/public/cpp/connection.h" 66 #include "services/shell/public/cpp/connection.h"
67 #include "services/shell/public/cpp/interface_provider.h" 67 #include "services/shell/public/cpp/interface_provider.h"
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1167 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1168 ClientIdToShaderCacheMap::iterator iter = 1168 ClientIdToShaderCacheMap::iterator iter =
1169 client_id_to_shader_cache_.find(client_id); 1169 client_id_to_shader_cache_.find(client_id);
1170 // If the cache doesn't exist then this is an off the record profile. 1170 // If the cache doesn't exist then this is an off the record profile.
1171 if (iter == client_id_to_shader_cache_.end()) 1171 if (iter == client_id_to_shader_cache_.end())
1172 return; 1172 return;
1173 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1173 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1174 } 1174 }
1175 1175
1176 } // namespace content 1176 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/mojo/merge_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698