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

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

Issue 474723002: Enable remote CoreAnimation API by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_flag
Patch Set: Add OS version check Created 6 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 | « no previous file | ui/base/cocoa/remote_layer_api.mm » ('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"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 94 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
95 switches::kLoggingLevel, 95 switches::kLoggingLevel,
96 switches::kLowEndDeviceMode, 96 switches::kLowEndDeviceMode,
97 switches::kNoSandbox, 97 switches::kNoSandbox,
98 switches::kTestGLLib, 98 switches::kTestGLLib,
99 switches::kTraceStartup, 99 switches::kTraceStartup,
100 switches::kTraceToConsole, 100 switches::kTraceToConsole,
101 switches::kV, 101 switches::kV,
102 switches::kVModule, 102 switches::kVModule,
103 #if defined(OS_MACOSX) 103 #if defined(OS_MACOSX)
104 switches::kEnableRemoteCoreAnimation, 104 switches::kDisableRemoteCoreAnimation,
105 switches::kEnableSandboxLogging, 105 switches::kEnableSandboxLogging,
106 #endif 106 #endif
107 #if defined(USE_AURA) 107 #if defined(USE_AURA)
108 switches::kUIPrioritizeInGpuProcess, 108 switches::kUIPrioritizeInGpuProcess,
109 #endif 109 #endif
110 #if defined(USE_OZONE) 110 #if defined(USE_OZONE)
111 switches::kOzonePlatform, 111 switches::kOzonePlatform,
112 switches::kOzoneUseSurfaceless, 112 switches::kOzoneUseSurfaceless,
113 #endif 113 #endif
114 #if defined(USE_X11) && !defined(OS_CHROMEOS) 114 #if defined(USE_X11) && !defined(OS_CHROMEOS)
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1058 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1059 ClientIdToShaderCacheMap::iterator iter = 1059 ClientIdToShaderCacheMap::iterator iter =
1060 client_id_to_shader_cache_.find(client_id); 1060 client_id_to_shader_cache_.find(client_id);
1061 // If the cache doesn't exist then this is an off the record profile. 1061 // If the cache doesn't exist then this is an off the record profile.
1062 if (iter == client_id_to_shader_cache_.end()) 1062 if (iter == client_id_to_shader_cache_.end())
1063 return; 1063 return;
1064 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1064 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1065 } 1065 }
1066 1066
1067 } // namespace content 1067 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/base/cocoa/remote_layer_api.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698