Add Chromium-only Blender WebEngine parity work
This commit is contained in:
11
blender-5.2.0/tests/performance/api/common.py
Normal file
11
blender-5.2.0/tests/performance/api/common.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# SPDX-FileCopyrightText: 2026 Blender Authors
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
||||
def normalize_device_id(device_id: str) -> str:
|
||||
"""Normalize a device ID by adding _0 suffix when there is no index."""
|
||||
parts = device_id.rsplit('_', 1)
|
||||
if len(parts) == 1 or not parts[1].isdigit():
|
||||
return device_id + '_0'
|
||||
return device_id
|
||||
Reference in New Issue
Block a user