| 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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH3D)) | 767 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH3D)) |
| 768 prefs->flash_3d_enabled = false; | 768 prefs->flash_3d_enabled = false; |
| 769 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D)) { | 769 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D)) { |
| 770 prefs->flash_stage3d_enabled = false; | 770 prefs->flash_stage3d_enabled = false; |
| 771 prefs->flash_stage3d_baseline_enabled = false; | 771 prefs->flash_stage3d_baseline_enabled = false; |
| 772 } | 772 } |
| 773 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE)) | 773 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE)) |
| 774 prefs->flash_stage3d_baseline_enabled = false; | 774 prefs->flash_stage3d_baseline_enabled = false; |
| 775 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) | 775 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) |
| 776 prefs->accelerated_2d_canvas_enabled = false; | 776 prefs->accelerated_2d_canvas_enabled = false; |
| 777 // TODO(senorblanco): The renderer shouldn't have an extra setting | |
| 778 // for this, but should rely on extension availability. | |
| 779 // Note that |gl_multisampling_enabled| only affects the decoder's | |
| 780 // default framebuffer allocation, which does not support | |
| 781 // multisampled_render_to_texture, only msaa with explicit resolve. | |
| 782 if (IsDriverBugWorkaroundActive( | |
| 783 gpu::DISABLE_CHROMIUM_FRAMEBUFFER_MULTISAMPLE) || | |
| 784 (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) && | |
| 785 display_count_ > 1)) | |
| 786 prefs->gl_multisampling_enabled = false; | |
| 787 | 777 |
| 788 #if defined(USE_AURA) | 778 #if defined(USE_AURA) |
| 789 if (!CanUseGpuBrowserCompositor()) { | 779 if (!CanUseGpuBrowserCompositor()) { |
| 790 prefs->accelerated_2d_canvas_enabled = false; | 780 prefs->accelerated_2d_canvas_enabled = false; |
| 791 prefs->pepper_3d_enabled = false; | 781 prefs->pepper_3d_enabled = false; |
| 792 } | 782 } |
| 793 #endif | 783 #endif |
| 794 | 784 |
| 795 const base::CommandLine* command_line = | 785 const base::CommandLine* command_line = |
| 796 base::CommandLine::ForCurrentProcess(); | 786 base::CommandLine::ForCurrentProcess(); |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; | 1234 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; |
| 1245 #if defined(OS_WIN) | 1235 #if defined(OS_WIN) |
| 1246 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; | 1236 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; |
| 1247 #endif | 1237 #endif |
| 1248 complete_gpu_info_already_requested_ = true; | 1238 complete_gpu_info_already_requested_ = true; |
| 1249 // Some observers might be waiting. | 1239 // Some observers might be waiting. |
| 1250 NotifyGpuInfoUpdate(); | 1240 NotifyGpuInfoUpdate(); |
| 1251 } | 1241 } |
| 1252 | 1242 |
| 1253 } // namespace content | 1243 } // namespace content |
| OLD | NEW |