gpu_feature_type.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GPU_CONFIG_GPU_FEATURE_TYPE_H_
  5. #define GPU_CONFIG_GPU_FEATURE_TYPE_H_
  6. namespace gpu {
  7. // Provides flags indicating which gpu features are blocklisted for the system
  8. // on which chrome is currently running.
  9. // If a bit is set to 1, corresponding feature is blocklisted.
  10. enum GpuFeatureType {
  11. GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS = 0,
  12. GPU_FEATURE_TYPE_ACCELERATED_WEBGL,
  13. GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE,
  14. GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE,
  15. GPU_FEATURE_TYPE_GPU_RASTERIZATION,
  16. GPU_FEATURE_TYPE_ACCELERATED_WEBGL2,
  17. GPU_FEATURE_TYPE_ANDROID_SURFACE_CONTROL,
  18. GPU_FEATURE_TYPE_ACCELERATED_GL,
  19. GPU_FEATURE_TYPE_METAL,
  20. GPU_FEATURE_TYPE_VULKAN,
  21. GPU_FEATURE_TYPE_CANVAS_OOP_RASTERIZATION,
  22. GPU_FEATURE_TYPE_ACCELERATED_WEBGPU,
  23. NUMBER_OF_GPU_FEATURE_TYPES
  24. };
  25. } // namespace gpu
  26. #endif // GPU_CONFIG_GPU_FEATURE_TYPE_H_