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

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

Issue 240253006: Remove --disable-accelerated-video and GPU_FEATURE_TYPE_ACCELERATED_VIDEO (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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "cc/base/switches.h" 10 #include "cc/base/switches.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 { 95 {
96 "video_encode", 96 "video_encode",
97 manager->IsFeatureBlacklisted( 97 manager->IsFeatureBlacklisted(
98 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), 98 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE),
99 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), 99 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding),
100 "Accelerated video encode has been disabled, either via about:flags" 100 "Accelerated video encode has been disabled, either via about:flags"
101 " or command line.", 101 " or command line.",
102 true 102 true
103 }, 103 },
104 #endif 104 #endif
105 {
106 "video",
107 manager->IsFeatureBlacklisted(
108 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO),
109 command_line.HasSwitch(switches::kDisableAcceleratedVideo),
110 "Accelerated video presentation has been disabled, either via"
111 " about:flags or command line.",
112 true
113 },
114 #if defined(OS_CHROMEOS) 105 #if defined(OS_CHROMEOS)
115 { 106 {
116 "panel_fitting", 107 "panel_fitting",
117 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), 108 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING),
118 command_line.HasSwitch(switches::kDisablePanelFitting), 109 command_line.HasSwitch(switches::kDisablePanelFitting),
119 "Panel fitting has been disabled, either via about:flags or command" 110 "Panel fitting has been disabled, either via about:flags or command"
120 " line.", 111 " line.",
121 false 112 false
122 }, 113 },
123 #endif 114 #endif
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return problem_list; 311 return problem_list;
321 } 312 }
322 313
323 base::Value* GetDriverBugWorkarounds() { 314 base::Value* GetDriverBugWorkarounds() {
324 base::ListValue* workaround_list = new base::ListValue(); 315 base::ListValue* workaround_list = new base::ListValue();
325 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 316 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
326 return workaround_list; 317 return workaround_list;
327 } 318 }
328 319
329 } // namespace content 320 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698