| 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 <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 const base::CommandLine& command_line = | 309 const base::CommandLine& command_line = |
| 310 *base::CommandLine::ForCurrentProcess(); | 310 *base::CommandLine::ForCurrentProcess(); |
| 311 | 311 |
| 312 if (command_line.HasSwitch(cc::switches::kDisableMainFrameBeforeActivation)) | 312 if (command_line.HasSwitch(cc::switches::kDisableMainFrameBeforeActivation)) |
| 313 return false; | 313 return false; |
| 314 | 314 |
| 315 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation)) | 315 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation)) |
| 316 return true; | 316 return true; |
| 317 | 317 |
| 318 return true; | 318 return base::FeatureList::IsEnabled(features::kMainFrameBeforeActivation); |
| 319 } | 319 } |
| 320 | 320 |
| 321 base::DictionaryValue* GetFeatureStatus() { | 321 base::DictionaryValue* GetFeatureStatus() { |
| 322 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); | 322 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); |
| 323 std::string gpu_access_blocked_reason; | 323 std::string gpu_access_blocked_reason; |
| 324 bool gpu_access_blocked = | 324 bool gpu_access_blocked = |
| 325 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); | 325 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); |
| 326 | 326 |
| 327 base::DictionaryValue* feature_status_dict = new base::DictionaryValue(); | 327 base::DictionaryValue* feature_status_dict = new base::DictionaryValue(); |
| 328 | 328 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 return problem_list; | 415 return problem_list; |
| 416 } | 416 } |
| 417 | 417 |
| 418 std::vector<std::string> GetDriverBugWorkarounds() { | 418 std::vector<std::string> GetDriverBugWorkarounds() { |
| 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 420 } | 420 } |
| 421 | 421 |
| 422 } // namespace content | 422 } // namespace content |
| OLD | NEW |