OLD | NEW |
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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "content/public/browser/render_widget_host_view.h" | 31 #include "content/public/browser/render_widget_host_view.h" |
32 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 32 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
33 #include "content/public/common/content_client.h" | 33 #include "content/public/common/content_client.h" |
34 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
35 #include "content/public/common/result_codes.h" | 35 #include "content/public/common/result_codes.h" |
36 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 36 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
37 #include "gpu/command_buffer/service/gpu_switches.h" | 37 #include "gpu/command_buffer/service/gpu_switches.h" |
38 #include "ipc/ipc_channel_handle.h" | 38 #include "ipc/ipc_channel_handle.h" |
39 #include "ipc/ipc_switches.h" | 39 #include "ipc/ipc_switches.h" |
40 #include "ipc/message_filter.h" | 40 #include "ipc/message_filter.h" |
| 41 #include "media/base/media_switches.h" |
41 #include "ui/events/latency_info.h" | 42 #include "ui/events/latency_info.h" |
42 #include "ui/gl/gl_switches.h" | 43 #include "ui/gl/gl_switches.h" |
43 | 44 |
44 | 45 |
45 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
46 #include "base/win/windows_version.h" | 47 #include "base/win/windows_version.h" |
47 #include "content/common/sandbox_win.h" | 48 #include "content/common/sandbox_win.h" |
48 #include "sandbox/win/src/sandbox_policy.h" | 49 #include "sandbox/win/src/sandbox_policy.h" |
49 #include "ui/gfx/switches.h" | 50 #include "ui/gfx/switches.h" |
50 #endif | 51 #endif |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 switches::kDisableSeccompFilterSandbox, | 931 switches::kDisableSeccompFilterSandbox, |
931 #if defined(ENABLE_WEBRTC) | 932 #if defined(ENABLE_WEBRTC) |
932 switches::kDisableWebRtcHWEncoding, | 933 switches::kDisableWebRtcHWEncoding, |
933 #endif | 934 #endif |
934 switches::kEnableLogging, | 935 switches::kEnableLogging, |
935 switches::kEnableShareGroupAsyncTextureUpload, | 936 switches::kEnableShareGroupAsyncTextureUpload, |
936 switches::kGpuStartupDialog, | 937 switches::kGpuStartupDialog, |
937 switches::kGpuSandboxAllowSysVShm, | 938 switches::kGpuSandboxAllowSysVShm, |
938 switches::kGpuSandboxFailuresFatal, | 939 switches::kGpuSandboxFailuresFatal, |
939 switches::kGpuSandboxStartAfterInitialization, | 940 switches::kGpuSandboxStartAfterInitialization, |
| 941 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
940 switches::kLoggingLevel, | 942 switches::kLoggingLevel, |
941 switches::kNoSandbox, | 943 switches::kNoSandbox, |
942 switches::kTestGLLib, | 944 switches::kTestGLLib, |
943 switches::kTraceStartup, | 945 switches::kTraceStartup, |
944 switches::kV, | 946 switches::kV, |
945 switches::kVModule, | 947 switches::kVModule, |
946 #if defined(OS_MACOSX) | 948 #if defined(OS_MACOSX) |
947 switches::kEnableSandboxLogging, | 949 switches::kEnableSandboxLogging, |
948 #endif | 950 #endif |
949 #if defined(USE_AURA) | 951 #if defined(USE_AURA) |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1065 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1064 ClientIdToShaderCacheMap::iterator iter = | 1066 ClientIdToShaderCacheMap::iterator iter = |
1065 client_id_to_shader_cache_.find(client_id); | 1067 client_id_to_shader_cache_.find(client_id); |
1066 // If the cache doesn't exist then this is an off the record profile. | 1068 // If the cache doesn't exist then this is an off the record profile. |
1067 if (iter == client_id_to_shader_cache_.end()) | 1069 if (iter == client_id_to_shader_cache_.end()) |
1068 return; | 1070 return; |
1069 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1071 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1070 } | 1072 } |
1071 | 1073 |
1072 } // namespace content | 1074 } // namespace content |
OLD | NEW |