Skip to content

Commit

Permalink
#72 - Fix armv7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Jul 20, 2023
1 parent d728db9 commit 5afea1c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ diff --git a/storage/browser/blob/blob_memory_controller.cc b/storage/browser/bl
+// static
+#if BUILDFLAG(IS_ANDROID)
+float approximated_device_memory_gb_ = 4.0;
+constexpr size_t approximated_device_disk_size = 8ull * 1024 * 1024 * 1024;
+constexpr int64_t approximated_device_disk_size = 8ull * 1024 * 1024 * 1024;
+#else
+float approximated_device_memory_gb_ = 8.0;
+constexpr size_t approximated_device_disk_size = 200ull * 1024 * 1024 * 1024;
+constexpr int64_t approximated_device_disk_size = 200ull * 1024 * 1024 * 1024;
+#endif
+
File::Error CreateBlobDirectory(const FilePath& blob_storage_dir) {
Expand Down Expand Up @@ -55,10 +55,10 @@ diff --git a/storage/browser/quota/quota_device_info_helper.cc b/storage/browser
+// static
+#if BUILDFLAG(IS_ANDROID)
+float approximated_device_memory_gb_ = 4.0;
+constexpr size_t approximated_device_disk_size = 8ull * 1024 * 1024 * 1024;
+constexpr int64_t approximated_device_disk_size = 8ull * 1024 * 1024 * 1024;
+#else
+float approximated_device_memory_gb_ = 8.0;
+constexpr size_t approximated_device_disk_size = 200ull * 1024 * 1024 * 1024;
+constexpr int64_t approximated_device_disk_size = 200ull * 1024 * 1024 * 1024;
+#endif
+
+}
Expand Down Expand Up @@ -156,9 +156,9 @@ diff --git a/third_party/blink/renderer/core/timing/memory_info.cc b/third_party
static constexpr base::TimeDelta kTwentyMinutes = base::Minutes(20);
static constexpr base::TimeDelta kFiftyMs = base::Milliseconds(50);
+#if BUILDFLAG(IS_ANDROID)
+static constexpr size_t heap_size_limit = 528744448;
+static constexpr int64_t heap_size_limit = 528744448;
+#else
+static constexpr size_t heap_size_limit = 4294705152;
+static constexpr int64_t heap_size_limit = 4294705152;
+#endif

static void GetHeapSize(HeapInfo& info) {
Expand Down

0 comments on commit 5afea1c

Please sign in to comment.