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

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

Issue 2482963002: fix incorrect about:gpu entry for WebGL2 (Closed)
Patch Set: fix test Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 manager->IsFeatureBlacklisted( 149 manager->IsFeatureBlacklisted(
150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) || 150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) ||
151 manager->IsFeatureBlacklisted( 151 manager->IsFeatureBlacklisted(
152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), 152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
153 accelerated_vpx_disabled, 153 accelerated_vpx_disabled,
154 "Accelerated VPx video decode has been disabled, either via blacklist" 154 "Accelerated VPx video decode has been disabled, either via blacklist"
155 " or the command line.", 155 " or the command line.",
156 true}, 156 true},
157 {kWebGL2FeatureName, 157 {kWebGL2FeatureName,
158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2), 158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2),
159 !command_line.HasSwitch(switches::kEnableES3APIs) ||
160 command_line.HasSwitch(switches::kDisableES3APIs), 159 command_line.HasSwitch(switches::kDisableES3APIs),
161 "WebGL2 has been disabled via blacklist or the command line.", 160 "WebGL2 has been disabled via blacklist or the command line.",
162 false}, 161 false},
163 }; 162 };
164 DCHECK(index < arraysize(kGpuFeatureInfo)); 163 DCHECK(index < arraysize(kGpuFeatureInfo));
165 *eof = (index == arraysize(kGpuFeatureInfo) - 1); 164 *eof = (index == arraysize(kGpuFeatureInfo) - 1);
166 return kGpuFeatureInfo[index]; 165 return kGpuFeatureInfo[index];
167 } 166 }
168 167
169 } // namespace 168 } // namespace
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 413 }
415 } 414 }
416 return problem_list; 415 return problem_list;
417 } 416 }
418 417
419 std::vector<std::string> GetDriverBugWorkarounds() { 418 std::vector<std::string> GetDriverBugWorkarounds() {
420 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
421 } 420 }
422 421
423 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698