[email protected] | 3d34657 | 2013-03-22 19:59:55 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
[email protected] | 2efc3118 | 2010-12-11 21:07:18 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 5 | #include "gpu/config/gpu_blacklist.h" |
[email protected] | 2efc3118 | 2010-12-11 21:07:18 | [diff] [blame] | 6 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 7 | #include "gpu/config/gpu_feature_type.h" |
[email protected] | 2efc3118 | 2010-12-11 21:07:18 | [diff] [blame] | 8 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 9 | namespace gpu { |
[email protected] | 2efc3118 | 2010-12-11 21:07:18 | [diff] [blame] | 10 | |
[email protected] | d56ecf92 | 2012-02-15 16:03:11 | [diff] [blame] | 11 | GpuBlacklist::GpuBlacklist() |
[email protected] | 3d34657 | 2013-03-22 19:59:55 | [diff] [blame] | 12 | : GpuControlList() { |
[email protected] | 2efc3118 | 2010-12-11 21:07:18 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | GpuBlacklist::~GpuBlacklist() { |
[email protected] | c6540e2 | 2011-04-06 16:23:49 | [diff] [blame] | 16 | } |
[email protected] | 916b977f | 2011-09-04 02:50:38 | [diff] [blame] | 17 | |
[email protected] | d1f43ab | 2012-03-07 20:42:34 | [diff] [blame] | 18 | // static |
[email protected] | 3d34657 | 2013-03-22 19:59:55 | [diff] [blame] | 19 | GpuBlacklist* GpuBlacklist::Create() { |
| 20 | GpuBlacklist* list = new GpuBlacklist(); |
[email protected] | 9c2985a | 2013-04-02 18:11:57 | [diff] [blame] | 21 | list->AddSupportedFeature("accelerated_2d_canvas", |
| 22 | GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS); |
[email protected] | c9afe69 | 2014-04-17 17:38:48 | [diff] [blame] | 23 | list->AddSupportedFeature("gpu_compositing", |
| 24 | GPU_FEATURE_TYPE_GPU_COMPOSITING); |
sugoi | 9e3f1853 | 2017-03-13 17:05:19 | [diff] [blame^] | 25 | list->AddSupportedFeature("accelerated_webgl", |
| 26 | GPU_FEATURE_TYPE_ACCELERATED_WEBGL); |
[email protected] | 9c2985a | 2013-04-02 18:11:57 | [diff] [blame] | 27 | list->AddSupportedFeature("flash_3d", |
| 28 | GPU_FEATURE_TYPE_FLASH3D); |
| 29 | list->AddSupportedFeature("flash_stage3d", |
| 30 | GPU_FEATURE_TYPE_FLASH_STAGE3D); |
| 31 | list->AddSupportedFeature("flash_stage3d_baseline", |
| 32 | GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE); |
[email protected] | 9c2985a | 2013-04-02 18:11:57 | [diff] [blame] | 33 | list->AddSupportedFeature("accelerated_video_decode", |
| 34 | GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE); |
[email protected] | 6998f01f2 | 2013-12-04 09:27:57 | [diff] [blame] | 35 | list->AddSupportedFeature("accelerated_video_encode", |
| 36 | GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE); |
[email protected] | 9c2985a | 2013-04-02 18:11:57 | [diff] [blame] | 37 | list->AddSupportedFeature("panel_fitting", |
| 38 | GPU_FEATURE_TYPE_PANEL_FITTING); |
[email protected] | 723f7c5 | 2014-04-17 17:34:41 | [diff] [blame] | 39 | list->AddSupportedFeature("gpu_rasterization", |
| 40 | GPU_FEATURE_TYPE_GPU_RASTERIZATION); |
jbauman | f7cded9c | 2016-07-22 18:30:16 | [diff] [blame] | 41 | list->AddSupportedFeature("accelerated_vpx_decode", |
| 42 | GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE); |
zmo | 05f50f9b | 2016-10-29 00:40:29 | [diff] [blame] | 43 | list->AddSupportedFeature("webgl2", |
| 44 | GPU_FEATURE_TYPE_WEBGL2); |
[email protected] | 9c2985a | 2013-04-02 18:11:57 | [diff] [blame] | 45 | list->set_supports_feature_type_all(true); |
[email protected] | 3d34657 | 2013-03-22 19:59:55 | [diff] [blame] | 46 | return list; |
[email protected] | d1f43ab | 2012-03-07 20:42:34 | [diff] [blame] | 47 | } |
[email protected] | 21efac3 | 2012-10-29 02:41:11 | [diff] [blame] | 48 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 49 | } // namespace gpu |