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

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

Issue 294293002: Enable --high-dpi-support by default. (Note that this is a registry setting. Also, remove dead refe… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to tip 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/browser/plugin_process_host.cc » ('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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 switches::kVModule, 947 switches::kVModule,
948 #if defined(OS_MACOSX) 948 #if defined(OS_MACOSX)
949 switches::kEnableSandboxLogging, 949 switches::kEnableSandboxLogging,
950 #endif 950 #endif
951 #if defined(USE_AURA) 951 #if defined(USE_AURA)
952 switches::kUIPrioritizeInGpuProcess, 952 switches::kUIPrioritizeInGpuProcess,
953 #endif 953 #endif
954 #if defined(USE_OZONE) 954 #if defined(USE_OZONE)
955 switches::kOzonePlatform, 955 switches::kOzonePlatform,
956 #endif 956 #endif
957 #if defined(OS_WIN)
958 switches::kHighDPISupport,
959 #endif
960 }; 957 };
961 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 958 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
962 arraysize(kSwitchNames)); 959 arraysize(kSwitchNames));
963 cmd_line->CopySwitchesFrom( 960 cmd_line->CopySwitchesFrom(
964 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); 961 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches);
965 cmd_line->CopySwitchesFrom( 962 cmd_line->CopySwitchesFrom(
966 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, 963 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost,
967 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); 964 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches);
968 965
969 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 966 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1062 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1066 ClientIdToShaderCacheMap::iterator iter = 1063 ClientIdToShaderCacheMap::iterator iter =
1067 client_id_to_shader_cache_.find(client_id); 1064 client_id_to_shader_cache_.find(client_id);
1068 // If the cache doesn't exist then this is an off the record profile. 1065 // If the cache doesn't exist then this is an off the record profile.
1069 if (iter == client_id_to_shader_cache_.end()) 1066 if (iter == client_id_to_shader_cache_.end())
1070 return; 1067 return;
1071 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1068 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1072 } 1069 }
1073 1070
1074 } // namespace content 1071 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698