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

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

Issue 2481973002: gl_context_glx: add workaround to create default context (Closed)
Patch Set: 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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