OLD | NEW |
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 #include "gpu/config/software_rendering_list_autogen.h" |
8 | 9 |
9 namespace gpu { | 10 namespace gpu { |
10 | 11 |
11 GpuBlacklist::GpuBlacklist() | 12 GpuBlacklist::GpuBlacklist(const GpuControlListData& data) |
12 : GpuControlList() { | 13 : GpuControlList(data) {} |
13 } | |
14 | 14 |
15 GpuBlacklist::~GpuBlacklist() { | 15 GpuBlacklist::~GpuBlacklist() { |
16 } | 16 } |
17 | 17 |
18 // static | 18 // static |
19 GpuBlacklist* GpuBlacklist::Create() { | 19 std::unique_ptr<GpuBlacklist> GpuBlacklist::Create() { |
20 GpuBlacklist* list = new GpuBlacklist(); | 20 GpuControlListData data(kSoftwareRenderingListVersion, |
| 21 kSoftwareRenderingListEntryCount, |
| 22 kSoftwareRenderingListEntries); |
| 23 return Create(data); |
| 24 } |
| 25 |
| 26 // static |
| 27 std::unique_ptr<GpuBlacklist> GpuBlacklist::Create( |
| 28 const GpuControlListData& data) { |
| 29 std::unique_ptr<GpuBlacklist> list(new GpuBlacklist(data)); |
21 list->AddSupportedFeature("accelerated_2d_canvas", | 30 list->AddSupportedFeature("accelerated_2d_canvas", |
22 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS); | 31 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS); |
23 list->AddSupportedFeature("gpu_compositing", | 32 list->AddSupportedFeature("gpu_compositing", |
24 GPU_FEATURE_TYPE_GPU_COMPOSITING); | 33 GPU_FEATURE_TYPE_GPU_COMPOSITING); |
25 list->AddSupportedFeature("accelerated_webgl", | 34 list->AddSupportedFeature("accelerated_webgl", |
26 GPU_FEATURE_TYPE_ACCELERATED_WEBGL); | 35 GPU_FEATURE_TYPE_ACCELERATED_WEBGL); |
27 list->AddSupportedFeature("flash_3d", | 36 list->AddSupportedFeature("flash3d", GPU_FEATURE_TYPE_FLASH3D); |
28 GPU_FEATURE_TYPE_FLASH3D); | 37 list->AddSupportedFeature("flash_stage3d", GPU_FEATURE_TYPE_FLASH_STAGE3D); |
29 list->AddSupportedFeature("flash_stage3d", | |
30 GPU_FEATURE_TYPE_FLASH_STAGE3D); | |
31 list->AddSupportedFeature("flash_stage3d_baseline", | 38 list->AddSupportedFeature("flash_stage3d_baseline", |
32 GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE); | 39 GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE); |
33 list->AddSupportedFeature("accelerated_video_decode", | 40 list->AddSupportedFeature("accelerated_video_decode", |
34 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE); | 41 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE); |
35 list->AddSupportedFeature("accelerated_video_encode", | 42 list->AddSupportedFeature("accelerated_video_encode", |
36 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE); | 43 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE); |
37 list->AddSupportedFeature("panel_fitting", | 44 list->AddSupportedFeature("panel_fitting", GPU_FEATURE_TYPE_PANEL_FITTING); |
38 GPU_FEATURE_TYPE_PANEL_FITTING); | |
39 list->AddSupportedFeature("gpu_rasterization", | 45 list->AddSupportedFeature("gpu_rasterization", |
40 GPU_FEATURE_TYPE_GPU_RASTERIZATION); | 46 GPU_FEATURE_TYPE_GPU_RASTERIZATION); |
41 list->AddSupportedFeature("accelerated_vpx_decode", | 47 list->AddSupportedFeature("accelerated_vpx_decode", |
42 GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE); | 48 GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE); |
43 list->AddSupportedFeature("webgl2", | 49 list->AddSupportedFeature("webgl2", GPU_FEATURE_TYPE_WEBGL2); |
44 GPU_FEATURE_TYPE_WEBGL2); | |
45 list->set_supports_feature_type_all(true); | |
46 return list; | 50 return list; |
47 } | 51 } |
48 | 52 |
49 } // namespace gpu | 53 } // namespace gpu |
OLD | NEW |