1 // 2 // Copyright 2022 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // system_info_util.h: 7 // Implementation of common test utilities for operating with SystemInfo. 8 // 9 10 #ifndef ANGLE_TESTS_SYSTEM_INFO_UTIL_H_ 11 #define ANGLE_TESTS_SYSTEM_INFO_UTIL_H_ 12 13 #include <stddef.h> 14 15 namespace angle 16 { 17 struct SystemInfo; 18 } // namespace angle 19 20 // Returns the index of the low power GPU in SystemInfo. 21 size_t FindLowPowerGPU(const angle::SystemInfo &); 22 23 // Returns the index of the high power GPU in SystemInfo. 24 size_t FindHighPowerGPU(const angle::SystemInfo &); 25 26 // Returns the index of the GPU in SystemInfo based on the OpenGL renderer string. 27 size_t FindActiveOpenGLGPU(const angle::SystemInfo &); 28 29 #endif // ANGLE_TESTS_SYSTEM_INFO_UTIL_H_ 30