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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 // for this, but should rely on extension availability. | 732 // for this, but should rely on extension availability. |
733 // Note that |gl_multisampling_enabled| only affects the decoder's | 733 // Note that |gl_multisampling_enabled| only affects the decoder's |
734 // default framebuffer allocation, which does not support | 734 // default framebuffer allocation, which does not support |
735 // multisampled_render_to_texture, only msaa with explicit resolve. | 735 // multisampled_render_to_texture, only msaa with explicit resolve. |
736 if (IsDriverBugWorkaroundActive( | 736 if (IsDriverBugWorkaroundActive( |
737 gpu::DISABLE_CHROMIUM_FRAMEBUFFER_MULTISAMPLE) || | 737 gpu::DISABLE_CHROMIUM_FRAMEBUFFER_MULTISAMPLE) || |
738 (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) && | 738 (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) && |
739 display_count_ > 1)) | 739 display_count_ > 1)) |
740 prefs->gl_multisampling_enabled = false; | 740 prefs->gl_multisampling_enabled = false; |
741 | 741 |
| 742 if (IsDriverBugWorkaroundActive(gpu::DISABLE_GL_RGB_FORMAT)) |
| 743 prefs->gl_rgb_support_enabled = false; |
| 744 |
742 #if defined(USE_AURA) | 745 #if defined(USE_AURA) |
743 if (!CanUseGpuBrowserCompositor()) { | 746 if (!CanUseGpuBrowserCompositor()) { |
744 prefs->accelerated_2d_canvas_enabled = false; | 747 prefs->accelerated_2d_canvas_enabled = false; |
745 prefs->pepper_3d_enabled = false; | 748 prefs->pepper_3d_enabled = false; |
746 } | 749 } |
747 #endif | 750 #endif |
748 | 751 |
749 const base::CommandLine* command_line = | 752 const base::CommandLine* command_line = |
750 base::CommandLine::ForCurrentProcess(); | 753 base::CommandLine::ForCurrentProcess(); |
751 if (!ShouldDisableAcceleratedVideoDecode(command_line) && | 754 if (!ShouldDisableAcceleratedVideoDecode(command_line) && |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1200 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
1198 #if defined(OS_WIN) | 1201 #if defined(OS_WIN) |
1199 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1202 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
1200 #endif | 1203 #endif |
1201 complete_gpu_info_already_requested_ = true; | 1204 complete_gpu_info_already_requested_ = true; |
1202 // Some observers might be waiting. | 1205 // Some observers might be waiting. |
1203 NotifyGpuInfoUpdate(); | 1206 NotifyGpuInfoUpdate(); |
1204 } | 1207 } |
1205 | 1208 |
1206 } // namespace content | 1209 } // namespace content |
OLD | NEW |