π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Enable WebGPU in local gallery mode
laurenspriemf7fc1240c4a5
diff --git a/mobile/apps/photos/lib/services/machine_learning/webgpu_execution_policy.dart b/mobile/apps/photos/lib/services/machine_learning/webgpu_execution_policy.dartindex 35c10308d6..1e3b5f9e8b 100644--- a/mobile/apps/photos/lib/services/machine_learning/webgpu_execution_policy.dart+++ b/mobile/apps/photos/lib/services/machine_learning/webgpu_execution_policy.dart@@ -1,7 +1,8 @@import "dart:io" show Platform;import "package:device_info_plus/device_info_plus.dart";-import "package:photos/service_locator.dart" show flagService;+import "package:photos/service_locator.dart"+ show flagService, isLocalGalleryMode;import "package:photos/utils/ram_check_util.dart";final webGpuExecutionPolicy = WebGpuExecutionPolicy();@@ -14,7 +15,7 @@ class WebGpuExecutionPolicy {Future<bool> isEligible() async {if (!Platform.isAndroid ||- !flagService.webGPUEnabled ||+ (!isLocalGalleryMode && !flagService.webGPUEnabled) ||!enoughRamForLocalIndexing) {return false;}