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

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

Issue 239973005: Remove GPU_FEATURE_TYPE_3D_CSS and --disable-accelerated-layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 months 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 | Annotate | Revision Log
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 "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
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_3d_transforms_enabled = true;
760 prefs->accelerated_compositing_for_animation_enabled = true;
761 prefs->accelerated_compositing_for_plugins_enabled = true;
762 prefs->accelerated_compositing_for_video_enabled = true; 759 prefs->accelerated_compositing_for_video_enabled = true;
763 760
764 #if defined(USE_AURA) 761 #if defined(USE_AURA)
765 if (!CanUseGpuBrowserCompositor()) { 762 if (!CanUseGpuBrowserCompositor()) {
766 prefs->accelerated_2d_canvas_enabled = false; 763 prefs->accelerated_2d_canvas_enabled = false;
767 prefs->pepper_3d_enabled = false; 764 prefs->pepper_3d_enabled = false;
768 } 765 }
769 #endif 766 #endif
770 767
771 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) && 768 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) &&
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 1146
1150 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { 1147 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() {
1151 gpu_process_accessible_ = false; 1148 gpu_process_accessible_ = false;
1152 gpu_info_.finalized = true; 1149 gpu_info_.finalized = true;
1153 complete_gpu_info_already_requested_ = true; 1150 complete_gpu_info_already_requested_ = true;
1154 // Some observers might be waiting. 1151 // Some observers might be waiting.
1155 NotifyGpuInfoUpdate(); 1152 NotifyGpuInfoUpdate();
1156 } 1153 }
1157 1154
1158 } // namespace content 1155 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698