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

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: Disabling broken unit tests. (Don't submit this code!) Created 6 years, 7 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 switches::kVModule, 945 switches::kVModule,
946 #if defined(OS_MACOSX) 946 #if defined(OS_MACOSX)
947 switches::kEnableSandboxLogging, 947 switches::kEnableSandboxLogging,
948 #endif 948 #endif
949 #if defined(USE_AURA) 949 #if defined(USE_AURA)
950 switches::kUIPrioritizeInGpuProcess, 950 switches::kUIPrioritizeInGpuProcess,
951 #endif 951 #endif
952 #if defined(USE_OZONE) 952 #if defined(USE_OZONE)
953 switches::kOzonePlatform, 953 switches::kOzonePlatform,
954 #endif 954 #endif
955 #if defined(OS_WIN)
956 switches::kHighDPISupport,
957 #endif
958 }; 955 };
959 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 956 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
960 arraysize(kSwitchNames)); 957 arraysize(kSwitchNames));
961 cmd_line->CopySwitchesFrom( 958 cmd_line->CopySwitchesFrom(
962 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); 959 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches);
963 cmd_line->CopySwitchesFrom( 960 cmd_line->CopySwitchesFrom(
964 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, 961 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost,
965 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); 962 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches);
966 963
967 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 964 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1060 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1064 ClientIdToShaderCacheMap::iterator iter = 1061 ClientIdToShaderCacheMap::iterator iter =
1065 client_id_to_shader_cache_.find(client_id); 1062 client_id_to_shader_cache_.find(client_id);
1066 // If the cache doesn't exist then this is an off the record profile. 1063 // If the cache doesn't exist then this is an off the record profile.
1067 if (iter == client_id_to_shader_cache_.end()) 1064 if (iter == client_id_to_shader_cache_.end())
1068 return; 1065 return;
1069 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1066 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1070 } 1067 }
1071 1068
1072 } // namespace content 1069 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack_unittest.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698