Chromium Code Reviews| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 739 } | 739 } |
| 740 | 740 |
| 741 if (ShouldDisableAcceleratedVideoDecode(command_line)) { | 741 if (ShouldDisableAcceleratedVideoDecode(command_line)) { |
| 742 if (gpu_preferences) { | 742 if (gpu_preferences) { |
| 743 gpu_preferences->disable_accelerated_video_decode = true; | 743 gpu_preferences->disable_accelerated_video_decode = true; |
| 744 } else { | 744 } else { |
| 745 command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode); | 745 command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode); |
| 746 } | 746 } |
| 747 } | 747 } |
| 748 | 748 |
| 749 if (gpu_driver_bugs_.find(gpu::CREATE_DEFAULT_CONTEXT) != | |
|
Ken Russell (switch to Gerrit)
2016/11/03 21:30:02
See below -- please rename to something like CREAT
Corentin Wallez
2016/11/03 21:41:45
Done
| |
| 750 gpu_driver_bugs_.end()) { | |
| 751 command_line->AppendSwitch(switches::kCreateDefaultContext); | |
| 752 } | |
| 753 | |
| 749 #if defined(OS_WIN) | 754 #if defined(OS_WIN) |
| 750 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && | 755 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) && |
| 751 gpu_preferences) { | 756 gpu_preferences) { |
| 752 gpu_preferences->enable_accelerated_vpx_decode = | 757 gpu_preferences->enable_accelerated_vpx_decode = |
| 753 gpu::GpuPreferences::VPX_VENDOR_NONE; | 758 gpu::GpuPreferences::VPX_VENDOR_NONE; |
| 754 } | 759 } |
| 755 #endif | 760 #endif |
| 756 | 761 |
| 757 #if defined(ENABLE_WEBRTC) | 762 #if defined(ENABLE_WEBRTC) |
| 758 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && | 763 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1298 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1303 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1299 #if defined(OS_WIN) | 1304 #if defined(OS_WIN) |
| 1300 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1305 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1301 #endif | 1306 #endif |
| 1302 complete_gpu_info_already_requested_ = true; | 1307 complete_gpu_info_already_requested_ = true; |
| 1303 // Some observers might be waiting. | 1308 // Some observers might be waiting. |
| 1304 NotifyGpuInfoUpdate(); | 1309 NotifyGpuInfoUpdate(); |
| 1305 } | 1310 } |
| 1306 | 1311 |
| 1307 } // namespace content | 1312 } // namespace content |
| OLD | NEW |