Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2467103003: gl_context_glx: add workaround to create default context (Closed)
Patch Set: Address comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_GL_CONTEXT) !=
750 gpu_driver_bugs_.end()) {
751 command_line->AppendSwitch(switches::kCreateDefaultGLContext);
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698