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

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

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments. Created 6 years, 6 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
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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 switches::kDisableWebRtcHWEncoding, 980 switches::kDisableWebRtcHWEncoding,
981 #endif 981 #endif
982 switches::kEnableLogging, 982 switches::kEnableLogging,
983 switches::kEnableShareGroupAsyncTextureUpload, 983 switches::kEnableShareGroupAsyncTextureUpload,
984 switches::kGpuStartupDialog, 984 switches::kGpuStartupDialog,
985 switches::kGpuSandboxAllowSysVShm, 985 switches::kGpuSandboxAllowSysVShm,
986 switches::kGpuSandboxFailuresFatal, 986 switches::kGpuSandboxFailuresFatal,
987 switches::kGpuSandboxStartAfterInitialization, 987 switches::kGpuSandboxStartAfterInitialization,
988 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 988 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
989 switches::kLoggingLevel, 989 switches::kLoggingLevel,
990 switches::kLowEndDeviceMode,
990 switches::kNoSandbox, 991 switches::kNoSandbox,
991 switches::kTestGLLib, 992 switches::kTestGLLib,
992 switches::kTraceStartup, 993 switches::kTraceStartup,
993 switches::kV, 994 switches::kV,
994 switches::kVModule, 995 switches::kVModule,
995 #if defined(OS_MACOSX) 996 #if defined(OS_MACOSX)
996 switches::kEnableSandboxLogging, 997 switches::kEnableSandboxLogging,
997 #endif 998 #endif
998 #if defined(USE_AURA) 999 #if defined(USE_AURA)
999 switches::kUIPrioritizeInGpuProcess, 1000 switches::kUIPrioritizeInGpuProcess,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1113 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1113 ClientIdToShaderCacheMap::iterator iter = 1114 ClientIdToShaderCacheMap::iterator iter =
1114 client_id_to_shader_cache_.find(client_id); 1115 client_id_to_shader_cache_.find(client_id);
1115 // If the cache doesn't exist then this is an off the record profile. 1116 // If the cache doesn't exist then this is an off the record profile.
1116 if (iter == client_id_to_shader_cache_.end()) 1117 if (iter == client_id_to_shader_cache_.end())
1117 return; 1118 return;
1118 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1119 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1119 } 1120 }
1120 1121
1121 } // namespace content 1122 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/web_cache_manager.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698