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

Side by Side Diff: gpu/config/gpu_blacklist.cc

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Formatting fix Created 3 years, 9 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
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | gpu/config/gpu_blacklist_unittest.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) 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 "gpu/config/gpu_blacklist.h" 5 #include "gpu/config/gpu_blacklist.h"
6 6
7 #include "gpu/config/gpu_feature_type.h" 7 #include "gpu/config/gpu_feature_type.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 GpuBlacklist::GpuBlacklist() 11 GpuBlacklist::GpuBlacklist()
12 : GpuControlList() { 12 : GpuControlList() {
13 } 13 }
14 14
15 GpuBlacklist::~GpuBlacklist() { 15 GpuBlacklist::~GpuBlacklist() {
16 } 16 }
17 17
18 // static 18 // static
19 GpuBlacklist* GpuBlacklist::Create() { 19 GpuBlacklist* GpuBlacklist::Create() {
20 GpuBlacklist* list = new GpuBlacklist(); 20 GpuBlacklist* list = new GpuBlacklist();
21 list->AddSupportedFeature("accelerated_2d_canvas", 21 list->AddSupportedFeature("accelerated_2d_canvas",
22 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS); 22 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS);
23 list->AddSupportedFeature("gpu_compositing", 23 list->AddSupportedFeature("gpu_compositing",
24 GPU_FEATURE_TYPE_GPU_COMPOSITING); 24 GPU_FEATURE_TYPE_GPU_COMPOSITING);
25 list->AddSupportedFeature("webgl", 25 list->AddSupportedFeature("accelerated_webgl",
26 GPU_FEATURE_TYPE_WEBGL); 26 GPU_FEATURE_TYPE_ACCELERATED_WEBGL);
27 list->AddSupportedFeature("flash_3d", 27 list->AddSupportedFeature("flash_3d",
28 GPU_FEATURE_TYPE_FLASH3D); 28 GPU_FEATURE_TYPE_FLASH3D);
29 list->AddSupportedFeature("flash_stage3d", 29 list->AddSupportedFeature("flash_stage3d",
30 GPU_FEATURE_TYPE_FLASH_STAGE3D); 30 GPU_FEATURE_TYPE_FLASH_STAGE3D);
31 list->AddSupportedFeature("flash_stage3d_baseline", 31 list->AddSupportedFeature("flash_stage3d_baseline",
32 GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE); 32 GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE);
33 list->AddSupportedFeature("accelerated_video_decode", 33 list->AddSupportedFeature("accelerated_video_decode",
34 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE); 34 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE);
35 list->AddSupportedFeature("accelerated_video_encode", 35 list->AddSupportedFeature("accelerated_video_encode",
36 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE); 36 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE);
37 list->AddSupportedFeature("panel_fitting", 37 list->AddSupportedFeature("panel_fitting",
38 GPU_FEATURE_TYPE_PANEL_FITTING); 38 GPU_FEATURE_TYPE_PANEL_FITTING);
39 list->AddSupportedFeature("gpu_rasterization", 39 list->AddSupportedFeature("gpu_rasterization",
40 GPU_FEATURE_TYPE_GPU_RASTERIZATION); 40 GPU_FEATURE_TYPE_GPU_RASTERIZATION);
41 list->AddSupportedFeature("accelerated_vpx_decode", 41 list->AddSupportedFeature("accelerated_vpx_decode",
42 GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE); 42 GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE);
43 list->AddSupportedFeature("webgl2", 43 list->AddSupportedFeature("webgl2",
44 GPU_FEATURE_TYPE_WEBGL2); 44 GPU_FEATURE_TYPE_WEBGL2);
45 list->set_supports_feature_type_all(true); 45 list->set_supports_feature_type_all(true);
46 return list; 46 return list;
47 } 47 }
48 48
49 } // namespace gpu 49 } // namespace gpu
OLDNEW
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | gpu/config/gpu_blacklist_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698