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

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: 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) 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 { 109 {
110 "video_encode", 110 "video_encode",
111 manager->IsFeatureBlacklisted( 111 manager->IsFeatureBlacklisted(
112 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), 112 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE),
113 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), 113 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding),
114 "Accelerated video encode has been disabled, either via about:flags" 114 "Accelerated video encode has been disabled, either via about:flags"
115 " or command line.", 115 " or command line.",
116 true 116 true
117 }, 117 },
118 #endif 118 #endif
119 {
120 "video",
121 manager->IsFeatureBlacklisted(
122 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO),
123 command_line.HasSwitch(switches::kDisableAcceleratedVideo),
124 "Accelerated video presentation has been disabled, either via"
125 " about:flags or command line.",
126 true
127 },
128 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS)
129 { 120 {
130 "panel_fitting", 121 "panel_fitting",
131 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), 122 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING),
132 command_line.HasSwitch(switches::kDisablePanelFitting), 123 command_line.HasSwitch(switches::kDisablePanelFitting),
133 "Panel fitting has been disabled, either via about:flags or command" 124 "Panel fitting has been disabled, either via about:flags or command"
134 " line.", 125 " line.",
135 false 126 false
136 }, 127 },
137 #endif 128 #endif
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 return problem_list; 324 return problem_list;
334 } 325 }
335 326
336 base::Value* GetDriverBugWorkarounds() { 327 base::Value* GetDriverBugWorkarounds() {
337 base::ListValue* workaround_list = new base::ListValue(); 328 base::ListValue* workaround_list = new base::ListValue();
338 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); 329 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list);
339 return workaround_list; 330 return workaround_list;
340 } 331 }
341 332
342 } // namespace content 333 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698