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

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

Issue 496503002: Delete obsolete GPU rasterization content whitelist code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('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 "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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 prefs->accelerated_2d_canvas_enabled = false; 692 prefs->accelerated_2d_canvas_enabled = false;
693 prefs->pepper_3d_enabled = false; 693 prefs->pepper_3d_enabled = false;
694 } 694 }
695 #endif 695 #endif
696 696
697 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) && 697 if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) &&
698 !base::CommandLine::ForCurrentProcess()->HasSwitch( 698 !base::CommandLine::ForCurrentProcess()->HasSwitch(
699 switches::kDisableAcceleratedVideoDecode)) { 699 switches::kDisableAcceleratedVideoDecode)) {
700 prefs->pepper_accelerated_video_decode_enabled = true; 700 prefs->pepper_accelerated_video_decode_enabled = true;
701 } 701 }
702
703 if (!IsFeatureBlacklisted(
704 gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION_EXPANDED_HEURISTICS) ||
705 base::FieldTrialList::FindFullName(
706 "GpuRasterizationExpandedContentWhitelist") == "Enabled")
707 prefs->use_expanded_heuristics_for_gpu_rasterization = true;
708 } 702 }
709 703
710 void GpuDataManagerImplPrivate::DisableHardwareAcceleration() { 704 void GpuDataManagerImplPrivate::DisableHardwareAcceleration() {
711 card_blacklisted_ = true; 705 card_blacklisted_ = true;
712 706
713 for (int i = 0; i < gpu::NUMBER_OF_GPU_FEATURE_TYPES; ++i) 707 for (int i = 0; i < gpu::NUMBER_OF_GPU_FEATURE_TYPES; ++i)
714 blacklisted_features_.insert(i); 708 blacklisted_features_.insert(i);
715 709
716 EnableSwiftShaderIfNecessary(); 710 EnableSwiftShaderIfNecessary();
717 NotifyGpuInfoUpdate(); 711 NotifyGpuInfoUpdate();
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 1073
1080 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { 1074 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() {
1081 gpu_process_accessible_ = false; 1075 gpu_process_accessible_ = false;
1082 gpu_info_.finalized = true; 1076 gpu_info_.finalized = true;
1083 complete_gpu_info_already_requested_ = true; 1077 complete_gpu_info_already_requested_ = true;
1084 // Some observers might be waiting. 1078 // Some observers might be waiting.
1085 NotifyGpuInfoUpdate(); 1079 NotifyGpuInfoUpdate();
1086 } 1080 }
1087 1081
1088 } // namespace content 1082 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698