blob: ad072b061bc26c5d62664e20a62a82853315541b [file] [log] [blame]
[email protected]3d346572013-03-22 19:59:551// Copyright (c) 2013 The Chromium Authors. All rights reserved.
[email protected]2efc31182010-12-11 21:07:182// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]d7b5cc72013-05-23 20:05:005#include "gpu/config/gpu_blacklist.h"
[email protected]2efc31182010-12-11 21:07:186
[email protected]d7b5cc72013-05-23 20:05:007#include "gpu/config/gpu_feature_type.h"
[email protected]2efc31182010-12-11 21:07:188
[email protected]d7b5cc72013-05-23 20:05:009namespace gpu {
[email protected]2efc31182010-12-11 21:07:1810
[email protected]d56ecf922012-02-15 16:03:1111GpuBlacklist::GpuBlacklist()
[email protected]3d346572013-03-22 19:59:5512 : GpuControlList() {
[email protected]2efc31182010-12-11 21:07:1813}
14
15GpuBlacklist::~GpuBlacklist() {
[email protected]c6540e22011-04-06 16:23:4916}
[email protected]916b977f2011-09-04 02:50:3817
[email protected]d1f43ab2012-03-07 20:42:3418// static
[email protected]3d346572013-03-22 19:59:5519GpuBlacklist* GpuBlacklist::Create() {
20 GpuBlacklist* list = new GpuBlacklist();
[email protected]9c2985a2013-04-02 18:11:5721 list->AddSupportedFeature("accelerated_2d_canvas",
22 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS);
23 list->AddSupportedFeature("accelerated_compositing",
24 GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING);
25 list->AddSupportedFeature("webgl",
26 GPU_FEATURE_TYPE_WEBGL);
[email protected]9c2985a2013-04-02 18:11:5727 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]9c2985a2013-04-02 18:11:5733 list->AddSupportedFeature("accelerated_video_decode",
34 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE);
[email protected]6998f01f22013-12-04 09:27:5735 list->AddSupportedFeature("accelerated_video_encode",
36 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE);
[email protected]9c2985a2013-04-02 18:11:5737 list->AddSupportedFeature("3d_css",
38 GPU_FEATURE_TYPE_3D_CSS);
39 list->AddSupportedFeature("accelerated_video",
40 GPU_FEATURE_TYPE_ACCELERATED_VIDEO);
41 list->AddSupportedFeature("panel_fitting",
42 GPU_FEATURE_TYPE_PANEL_FITTING);
[email protected]723f7c52014-04-17 17:34:4143 list->AddSupportedFeature("gpu_rasterization",
44 GPU_FEATURE_TYPE_GPU_RASTERIZATION);
[email protected]9c2985a2013-04-02 18:11:5745 list->set_supports_feature_type_all(true);
[email protected]3d346572013-03-22 19:59:5546 return list;
[email protected]d1f43ab2012-03-07 20:42:3447}
[email protected]21efac32012-10-29 02:41:1148
[email protected]d7b5cc72013-05-23 20:05:0049} // namespace gpu