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

Side by Side Diff: gpu/config/gpu_util.cc

Issue 2771953002: Switch Low-end Android to DefaultEnableGpuRasterization trial (Closed)
Patch Set: Created 3 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
« no previous file with comments | « gpu/config/gpu_finch_features.cc ('k') | 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 "gpu/config/gpu_util.h" 5 #include "gpu/config/gpu_util.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const base::CommandLine& command_line) { 70 const base::CommandLine& command_line) {
71 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) 71 if (command_line.HasSwitch(switches::kDisableGpuRasterization))
72 return kGpuFeatureStatusDisabled; 72 return kGpuFeatureStatusDisabled;
73 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) 73 else if (command_line.HasSwitch(switches::kEnableGpuRasterization))
74 return kGpuFeatureStatusEnabled; 74 return kGpuFeatureStatusEnabled;
75 75
76 if (blacklisted_features.count(GPU_FEATURE_TYPE_GPU_RASTERIZATION)) 76 if (blacklisted_features.count(GPU_FEATURE_TYPE_GPU_RASTERIZATION))
77 return kGpuFeatureStatusBlacklisted; 77 return kGpuFeatureStatusBlacklisted;
78 78
79 #if defined(OS_ANDROID) 79 #if defined(OS_ANDROID)
80 // We can't use GPU rasterization on low-end devices, because the Ganesh 80 // GPU Raster is always enabled on non-low-end Android. On low-end, it is
81 // cache would consume too much memory. 81 // controlled by a Finch experiment.
82 if (base::SysInfo::IsLowEndDevice()) 82 if (!base::SysInfo::IsLowEndDevice())
83 return kGpuFeatureStatusBlacklisted; 83 return kGpuFeatureStatusEnabled;
84 #endif // defined(OS_ANDROID) 84 #endif // defined(OS_ANDROID)
85 85
86 // Gpu Rasterization on platforms that are not fully enabled is controlled by 86 // Gpu Rasterization on platforms that are not fully enabled is controlled by
87 // a finch experiment. 87 // a finch experiment.
88 if (!base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization)) 88 if (!base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization))
89 return kGpuFeatureStatusDisabled; 89 return kGpuFeatureStatusDisabled;
90 90
91 return kGpuFeatureStatusEnabled; 91 return kGpuFeatureStatusEnabled;
92 } 92 }
93 93
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 gpu_info.vertex_shader_version); 236 gpu_info.vertex_shader_version);
237 #if defined(OS_MACOSX) 237 #if defined(OS_MACOSX)
238 base::debug::SetCrashKeyValue(crash_keys::kGPUGLVersion, gpu_info.gl_version); 238 base::debug::SetCrashKeyValue(crash_keys::kGPUGLVersion, gpu_info.gl_version);
239 #elif defined(OS_POSIX) 239 #elif defined(OS_POSIX)
240 base::debug::SetCrashKeyValue(crash_keys::kGPUVendor, gpu_info.gl_vendor); 240 base::debug::SetCrashKeyValue(crash_keys::kGPUVendor, gpu_info.gl_vendor);
241 base::debug::SetCrashKeyValue(crash_keys::kGPURenderer, gpu_info.gl_renderer); 241 base::debug::SetCrashKeyValue(crash_keys::kGPURenderer, gpu_info.gl_renderer);
242 #endif 242 #endif
243 } 243 }
244 244
245 } // namespace gpu 245 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_finch_features.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698