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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 } | 749 } |
750 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE)) | 750 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE)) |
751 prefs->flash_stage3d_baseline_enabled = false; | 751 prefs->flash_stage3d_baseline_enabled = false; |
752 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) | 752 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) |
753 prefs->accelerated_2d_canvas_enabled = false; | 753 prefs->accelerated_2d_canvas_enabled = false; |
754 if (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTISAMPLING) || | 754 if (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTISAMPLING) || |
755 (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) && | 755 (IsDriverBugWorkaroundActive(gpu::DISABLE_MULTIMONITOR_MULTISAMPLING) && |
756 display_count_ > 1)) | 756 display_count_ > 1)) |
757 prefs->gl_multisampling_enabled = false; | 757 prefs->gl_multisampling_enabled = false; |
758 | 758 |
759 prefs->accelerated_compositing_for_video_enabled = true; | |
760 | |
761 #if defined(USE_AURA) | 759 #if defined(USE_AURA) |
762 if (!CanUseGpuBrowserCompositor()) { | 760 if (!CanUseGpuBrowserCompositor()) { |
763 prefs->accelerated_2d_canvas_enabled = false; | 761 prefs->accelerated_2d_canvas_enabled = false; |
764 prefs->pepper_3d_enabled = false; | 762 prefs->pepper_3d_enabled = false; |
765 } | 763 } |
766 #endif | 764 #endif |
767 | 765 |
768 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) && | 766 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) && |
769 !CommandLine::ForCurrentProcess()->HasSwitch( | 767 !CommandLine::ForCurrentProcess()->HasSwitch( |
770 switches::kDisableAcceleratedVideoDecode)) { | 768 switches::kDisableAcceleratedVideoDecode)) { |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1144 |
1147 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { | 1145 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { |
1148 gpu_process_accessible_ = false; | 1146 gpu_process_accessible_ = false; |
1149 gpu_info_.finalized = true; | 1147 gpu_info_.finalized = true; |
1150 complete_gpu_info_already_requested_ = true; | 1148 complete_gpu_info_already_requested_ = true; |
1151 // Some observers might be waiting. | 1149 // Some observers might be waiting. |
1152 NotifyGpuInfoUpdate(); | 1150 NotifyGpuInfoUpdate(); |
1153 } | 1151 } |
1154 | 1152 |
1155 } // namespace content | 1153 } // namespace content |
OLD | NEW |