diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 17:21:03 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 16:25:15 +0000 |
commit | c551f43206405019121bd2b2c93714319a0a3300 (patch) | |
tree | 1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/gpu/config/gpu_blocklist.cc | |
parent | 7961cea6d1041e3e454dae6a1da660b453efd238 (diff) | |
download | qtwebengine-chromium-c551f43206405019121bd2b2c93714319a0a3300.tar.gz |
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/gpu/config/gpu_blocklist.cc')
-rw-r--r-- | chromium/gpu/config/gpu_blocklist.cc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/chromium/gpu/config/gpu_blocklist.cc b/chromium/gpu/config/gpu_blocklist.cc new file mode 100644 index 00000000000..7fb9cf5042f --- /dev/null +++ b/chromium/gpu/config/gpu_blocklist.cc @@ -0,0 +1,62 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "gpu/config/gpu_blocklist.h" + +#include "gpu/config/gpu_feature_type.h" +#include "gpu/config/software_rendering_list_autogen.h" + +namespace gpu { + +GpuBlocklist::GpuBlocklist(const GpuControlListData& data) + : GpuControlList(data) {} + +GpuBlocklist::~GpuBlocklist() = default; + +// static +std::unique_ptr<GpuBlocklist> GpuBlocklist::Create() { + GpuControlListData data(kSoftwareRenderingListEntryCount, + kSoftwareRenderingListEntries); + return Create(data); +} + +// static +std::unique_ptr<GpuBlocklist> GpuBlocklist::Create( + const GpuControlListData& data) { + std::unique_ptr<GpuBlocklist> list(new GpuBlocklist(data)); + list->AddSupportedFeature("accelerated_2d_canvas", + GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS); + list->AddSupportedFeature("gpu_compositing", + GPU_FEATURE_TYPE_GPU_COMPOSITING); + list->AddSupportedFeature("accelerated_webgl", + GPU_FEATURE_TYPE_ACCELERATED_WEBGL); + list->AddSupportedFeature("flash3d", GPU_FEATURE_TYPE_FLASH3D); + list->AddSupportedFeature("flash_stage3d", GPU_FEATURE_TYPE_FLASH_STAGE3D); + list->AddSupportedFeature("flash_stage3d_baseline", + GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE); + list->AddSupportedFeature("accelerated_video_decode", + GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE); + list->AddSupportedFeature("gpu_rasterization", + GPU_FEATURE_TYPE_GPU_RASTERIZATION); + list->AddSupportedFeature("accelerated_webgl2", + GPU_FEATURE_TYPE_ACCELERATED_WEBGL2); + list->AddSupportedFeature("protected_video_decode", + GPU_FEATURE_TYPE_PROTECTED_VIDEO_DECODE); + list->AddSupportedFeature("oop_rasterization", + GPU_FEATURE_TYPE_OOP_RASTERIZATION); + list->AddSupportedFeature("android_surface_control", + GPU_FEATURE_TYPE_ANDROID_SURFACE_CONTROL); + list->AddSupportedFeature("metal", GPU_FEATURE_TYPE_METAL); + list->AddSupportedFeature("vulkan", GPU_FEATURE_TYPE_VULKAN); + return list; +} + +// static +bool GpuBlocklist::AreEntryIndicesValid( + const std::vector<uint32_t>& entry_indices) { + return GpuControlList::AreEntryIndicesValid(entry_indices, + kSoftwareRenderingListEntryCount); +} + +} // namespace gpu |