| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |