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

Side by Side Diff: content/gpu/gpu_info_collector_android.cc

Issue 12406009: Increase the resolution of low-res tiles on Nexus7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | 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/gpu/gpu_info_collector.h" 5 #include "content/gpu/gpu_info_collector.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 !CommandLine::ForCurrentProcess()->HasSwitch( 118 !CommandLine::ForCurrentProcess()->HasSwitch(
119 switches::kDefaultTileHeight)) { 119 switches::kDefaultTileHeight)) {
120 std::stringstream size; 120 std::stringstream size;
121 size << default_tile_size; 121 size << default_tile_size;
122 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 122 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
123 switches::kDefaultTileWidth, size.str()); 123 switches::kDefaultTileWidth, size.str());
124 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 124 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
125 switches::kDefaultTileHeight, size.str()); 125 switches::kDefaultTileHeight, size.str());
126 } 126 }
127 127
128 // Increase the resolution of low resolution tiles for Nexus 10. 128 // Increase the resolution of low resolution tiles for Nexus tablets.
129 if (is_nexus10 && 129 if ((is_nexus7 || is_nexus10) &&
130 !CommandLine::ForCurrentProcess()->HasSwitch( 130 !CommandLine::ForCurrentProcess()->HasSwitch(
131 cc::switches::kLowResolutionContentsScaleFactor)) { 131 cc::switches::kLowResolutionContentsScaleFactor)) {
132 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 132 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
133 cc::switches::kLowResolutionContentsScaleFactor, "0.25"); 133 cc::switches::kLowResolutionContentsScaleFactor, "0.25");
134 } 134 }
135 135
136 return true; 136 return true;
137 } 137 }
138 138
139 bool CollectDriverInfoGL(content::GPUInfo* gpu_info) { 139 bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
140 gpu_info->driver_version = GetDriverVersionFromString( 140 gpu_info->driver_version = GetDriverVersionFromString(
141 gpu_info->gl_version_string); 141 gpu_info->gl_version_string);
142 return true; 142 return true;
143 } 143 }
144 144
145 void MergeGPUInfo(content::GPUInfo* basic_gpu_info, 145 void MergeGPUInfo(content::GPUInfo* basic_gpu_info,
146 const content::GPUInfo& context_gpu_info) { 146 const content::GPUInfo& context_gpu_info) {
147 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); 147 MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
148 } 148 }
149 149
150 } // namespace gpu_info_collector 150 } // namespace gpu_info_collector
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698