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

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

Issue 2447163002: Enable GPU Rasterization by default on Mac (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | content/public/common/content_features.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/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) 240 if (command_line.HasSwitch(switches::kDisableGpuRasterization))
241 return false; 241 return false;
242 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) 242 else if (command_line.HasSwitch(switches::kEnableGpuRasterization))
243 return true; 243 return true;
244 244
245 if (IsGpuRasterizationBlacklisted()) { 245 if (IsGpuRasterizationBlacklisted()) {
246 return false; 246 return false;
247 } 247 }
248 248
249 #if defined(OS_ANDROID)
250 return true;
251 #endif
252
253 // Gpu Rasterization on platforms that are not fully enabled is controlled by 249 // Gpu Rasterization on platforms that are not fully enabled is controlled by
254 // a finch experiment. 250 // a finch experiment.
255 return base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization); 251 return base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization);
256 } 252 }
257 253
258 bool IsAsyncWorkerContextEnabled() { 254 bool IsAsyncWorkerContextEnabled() {
259 const base::CommandLine& command_line = 255 const base::CommandLine& command_line =
260 *base::CommandLine::ForCurrentProcess(); 256 *base::CommandLine::ForCurrentProcess();
261 257
262 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) 258 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext))
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 405 }
410 } 406 }
411 return problem_list; 407 return problem_list;
412 } 408 }
413 409
414 std::vector<std::string> GetDriverBugWorkarounds() { 410 std::vector<std::string> GetDriverBugWorkarounds() {
415 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 411 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
416 } 412 }
417 413
418 } // namespace content 414 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698