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

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

Issue 2960933002: tools/benchmarks: Fix failures in image decoding measurements. (Closed)
Patch Set: .. Created 3 years, 5 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 | « cc/base/switches.cc ('k') | tools/perf/benchmarks/image_decoding.py » ('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 <utility> 9 #include <utility>
10 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return false; 278 return false;
279 279
280 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation)) 280 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation))
281 return true; 281 return true;
282 282
283 return true; 283 return true;
284 } 284 }
285 285
286 bool IsCheckerImagingEnabled() { 286 bool IsCheckerImagingEnabled() {
287 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 287 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
288 cc::switches::kDisableCheckerImaging))
289 return false;
290
291 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
288 cc::switches::kEnableCheckerImaging)) 292 cc::switches::kEnableCheckerImaging))
289 return true; 293 return true;
290 294
291 if (base::FeatureList::IsEnabled(features::kCheckerImaging)) 295 if (base::FeatureList::IsEnabled(features::kCheckerImaging))
292 return true; 296 return true;
293 297
294 return false; 298 return false;
295 } 299 }
296 300
297 std::unique_ptr<base::DictionaryValue> GetFeatureStatus() { 301 std::unique_ptr<base::DictionaryValue> GetFeatureStatus() {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 396 }
393 } 397 }
394 return problem_list; 398 return problem_list;
395 } 399 }
396 400
397 std::vector<std::string> GetDriverBugWorkarounds() { 401 std::vector<std::string> GetDriverBugWorkarounds() {
398 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 402 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
399 } 403 }
400 404
401 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | tools/perf/benchmarks/image_decoding.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698