| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 } | 349 } |
| 350 if (gpu_feature_info.name == kMultipleRasterThreadsFeatureName) | 350 if (gpu_feature_info.name == kMultipleRasterThreadsFeatureName) |
| 351 status += "_on"; | 351 status += "_on"; |
| 352 } | 352 } |
| 353 if (gpu_feature_info.name == kWebGLFeatureName && | 353 if (gpu_feature_info.name == kWebGLFeatureName && |
| 354 (gpu_feature_info.blocked || gpu_access_blocked) && | 354 (gpu_feature_info.blocked || gpu_access_blocked) && |
| 355 manager->ShouldUseSwiftShader()) { | 355 manager->ShouldUseSwiftShader()) { |
| 356 status = "unavailable_software"; | 356 status = "unavailable_software"; |
| 357 } | 357 } |
| 358 | 358 |
| 359 feature_status_dict->SetString( | 359 feature_status_dict->SetString(gpu_feature_info.name, status); |
| 360 gpu_feature_info.name.c_str(), status.c_str()); | |
| 361 } | 360 } |
| 362 return feature_status_dict; | 361 return feature_status_dict; |
| 363 } | 362 } |
| 364 | 363 |
| 365 base::Value* GetProblems() { | 364 base::Value* GetProblems() { |
| 366 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); | 365 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); |
| 367 std::string gpu_access_blocked_reason; | 366 std::string gpu_access_blocked_reason; |
| 368 bool gpu_access_blocked = | 367 bool gpu_access_blocked = |
| 369 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); | 368 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); |
| 370 | 369 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 } | 401 } |
| 403 } | 402 } |
| 404 return problem_list; | 403 return problem_list; |
| 405 } | 404 } |
| 406 | 405 |
| 407 std::vector<std::string> GetDriverBugWorkarounds() { | 406 std::vector<std::string> GetDriverBugWorkarounds() { |
| 408 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 407 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 409 } | 408 } |
| 410 | 409 |
| 411 } // namespace content | 410 } // namespace content |
| OLD | NEW |