| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/gpu_data_manager_impl_private.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 } | 747 } |
| 748 } | 748 } |
| 749 | 749 |
| 750 #if defined(OS_ANDROID) | 750 #if defined(OS_ANDROID) |
| 751 if (command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes) && | 751 if (command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes) && |
| 752 IsDriverBugWorkaroundActive(gpu::AVDA_NO_EGLIMAGE_FOR_LUMINANCE_TEX)) { | 752 IsDriverBugWorkaroundActive(gpu::AVDA_NO_EGLIMAGE_FOR_LUMINANCE_TEX)) { |
| 753 command_line->AppendSwitch(switches::kDisableUnifiedMediaPipeline); | 753 command_line->AppendSwitch(switches::kDisableUnifiedMediaPipeline); |
| 754 } | 754 } |
| 755 #endif | 755 #endif |
| 756 | 756 |
| 757 if (gpu_driver_bugs_.find(gpu::CREATE_DEFAULT_GL_CONTEXT) != |
| 758 gpu_driver_bugs_.end()) { |
| 759 command_line->AppendSwitch(switches::kCreateDefaultGLContext); |
| 760 } |
| 761 |
| 757 #if defined(OS_WIN) | 762 #if defined(OS_WIN) |
| 758 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && | 763 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && |
| 759 gpu_preferences) { | 764 gpu_preferences) { |
| 760 gpu_preferences->enable_accelerated_vpx_decode = | 765 gpu_preferences->enable_accelerated_vpx_decode = |
| 761 gpu::GpuPreferences::VPX_VENDOR_NONE; | 766 gpu::GpuPreferences::VPX_VENDOR_NONE; |
| 762 } | 767 } |
| 763 #endif | 768 #endif |
| 764 | 769 |
| 765 #if defined(ENABLE_WEBRTC) | 770 #if defined(ENABLE_WEBRTC) |
| 766 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && | 771 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1318 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1314 #if defined(OS_WIN) | 1319 #if defined(OS_WIN) |
| 1315 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1320 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1316 #endif | 1321 #endif |
| 1317 complete_gpu_info_already_requested_ = true; | 1322 complete_gpu_info_already_requested_ = true; |
| 1318 // Some observers might be waiting. | 1323 // Some observers might be waiting. |
| 1319 NotifyGpuInfoUpdate(); | 1324 NotifyGpuInfoUpdate(); |
| 1320 } | 1325 } |
| 1321 | 1326 |
| 1322 } // namespace content | 1327 } // namespace content |
| OLD | NEW |