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 22 matching lines...) Expand all Loading... |
33 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 33 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
34 #include "content/public/common/content_client.h" | 34 #include "content/public/common/content_client.h" |
35 #include "content/public/common/content_switches.h" | 35 #include "content/public/common/content_switches.h" |
36 #include "content/public/common/result_codes.h" | 36 #include "content/public/common/result_codes.h" |
37 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 37 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
38 #include "gpu/command_buffer/service/gpu_switches.h" | 38 #include "gpu/command_buffer/service/gpu_switches.h" |
39 #include "ipc/ipc_channel_handle.h" | 39 #include "ipc/ipc_channel_handle.h" |
40 #include "ipc/ipc_switches.h" | 40 #include "ipc/ipc_switches.h" |
41 #include "ipc/message_filter.h" | 41 #include "ipc/message_filter.h" |
42 #include "media/base/media_switches.h" | 42 #include "media/base/media_switches.h" |
| 43 #include "ui/base/ui_base_switches.h" |
43 #include "ui/events/latency_info.h" | 44 #include "ui/events/latency_info.h" |
44 #include "ui/gl/gl_switches.h" | 45 #include "ui/gl/gl_switches.h" |
45 | 46 |
46 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
47 #include "base/win/windows_version.h" | 48 #include "base/win/windows_version.h" |
48 #include "content/common/sandbox_win.h" | 49 #include "content/common/sandbox_win.h" |
49 #include "sandbox/win/src/sandbox_policy.h" | 50 #include "sandbox/win/src/sandbox_policy.h" |
50 #include "ui/gfx/switches.h" | 51 #include "ui/gfx/switches.h" |
51 #endif | 52 #endif |
52 | 53 |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 853 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
853 switches::kLoggingLevel, | 854 switches::kLoggingLevel, |
854 switches::kLowEndDeviceMode, | 855 switches::kLowEndDeviceMode, |
855 switches::kNoSandbox, | 856 switches::kNoSandbox, |
856 switches::kTestGLLib, | 857 switches::kTestGLLib, |
857 switches::kTraceStartup, | 858 switches::kTraceStartup, |
858 switches::kTraceToConsole, | 859 switches::kTraceToConsole, |
859 switches::kV, | 860 switches::kV, |
860 switches::kVModule, | 861 switches::kVModule, |
861 #if defined(OS_MACOSX) | 862 #if defined(OS_MACOSX) |
| 863 switches::kEnableRemoteCoreAnimation, |
862 switches::kEnableSandboxLogging, | 864 switches::kEnableSandboxLogging, |
863 #endif | 865 #endif |
864 #if defined(USE_AURA) | 866 #if defined(USE_AURA) |
865 switches::kUIPrioritizeInGpuProcess, | 867 switches::kUIPrioritizeInGpuProcess, |
866 #endif | 868 #endif |
867 #if defined(USE_OZONE) | 869 #if defined(USE_OZONE) |
868 switches::kOzonePlatform, | 870 switches::kOzonePlatform, |
869 #endif | 871 #endif |
870 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 872 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
871 switches::kX11Display, | 873 switches::kX11Display, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1046 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1045 ClientIdToShaderCacheMap::iterator iter = | 1047 ClientIdToShaderCacheMap::iterator iter = |
1046 client_id_to_shader_cache_.find(client_id); | 1048 client_id_to_shader_cache_.find(client_id); |
1047 // If the cache doesn't exist then this is an off the record profile. | 1049 // If the cache doesn't exist then this is an off the record profile. |
1048 if (iter == client_id_to_shader_cache_.end()) | 1050 if (iter == client_id_to_shader_cache_.end()) |
1049 return; | 1051 return; |
1050 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1052 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1051 } | 1053 } |
1052 | 1054 |
1053 } // namespace content | 1055 } // namespace content |
OLD | NEW |