Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(desktop-gpui): gate the portable blur parity tests like the existing GPU blur test

Richie McIlroy604d77e7418e
diff --git a/apps/desktop-gpui/src/camera_blur_portable.rs b/apps/desktop-gpui/src/camera_blur_portable.rs
index 8adb2ba0d..4d86acdd0 100644
--- a/apps/desktop-gpui/src/camera_blur_portable.rs
+++ b/apps/desktop-gpui/src/camera_blur_portable.rs
@@ -411,6 +411,10 @@ mod tests {
}
fn deterministic_blur(allow_bgra: bool) -> Option<PortableCameraBlur> {
+ #[cfg(not(target_os = "macos"))]
+ if std::env::var_os("CAP_GPUI_TEST_PORTABLE_BLUR").is_none() {
+ return None;
+ }
match PortableCameraBlur::with_bgra(allow_bgra) {
Ok(mut blur) => {
blur.processor.set_frame_synchronous(true);