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

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

Issue 232483005: Enable --high-dpi-support by default. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 8 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 switches::kVModule, 1118 switches::kVModule,
1119 #if defined(OS_MACOSX) 1119 #if defined(OS_MACOSX)
1120 switches::kEnableSandboxLogging, 1120 switches::kEnableSandboxLogging,
1121 #endif 1121 #endif
1122 #if defined(USE_AURA) 1122 #if defined(USE_AURA)
1123 switches::kUIPrioritizeInGpuProcess, 1123 switches::kUIPrioritizeInGpuProcess,
1124 #endif 1124 #endif
1125 #if defined(USE_OZONE) 1125 #if defined(USE_OZONE)
1126 switches::kOzonePlatform, 1126 switches::kOzonePlatform,
1127 #endif 1127 #endif
1128 #if defined(OS_WIN)
1129 switches::kHighDPISupport,
1130 #endif
1131 }; 1128 };
1132 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 1129 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
1133 arraysize(kSwitchNames)); 1130 arraysize(kSwitchNames));
1134 cmd_line->CopySwitchesFrom( 1131 cmd_line->CopySwitchesFrom(
1135 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); 1132 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches);
1136 cmd_line->CopySwitchesFrom( 1133 cmd_line->CopySwitchesFrom(
1137 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, 1134 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost,
1138 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); 1135 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches);
1139 1136
1140 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 1137 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1233 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1237 ClientIdToShaderCacheMap::iterator iter = 1234 ClientIdToShaderCacheMap::iterator iter =
1238 client_id_to_shader_cache_.find(client_id); 1235 client_id_to_shader_cache_.find(client_id);
1239 // If the cache doesn't exist then this is an off the record profile. 1236 // If the cache doesn't exist then this is an off the record profile.
1240 if (iter == client_id_to_shader_cache_.end()) 1237 if (iter == client_id_to_shader_cache_.end())
1241 return; 1238 return;
1242 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1239 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1243 } 1240 }
1244 1241
1245 } // namespace content 1242 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698