Searched refs:kDefaultCacheSize (Results 1 – 7 of 7) sorted by relevance
100 using disk_cache::kDefaultCacheSize; in PreferredCacheSizeInternal()103 if (available < kDefaultCacheSize * 10 / 8) in PreferredCacheSizeInternal()107 if (available < kDefaultCacheSize * 10) in PreferredCacheSizeInternal()108 return kDefaultCacheSize; in PreferredCacheSizeInternal()112 if (available < static_cast<int64_t>(kDefaultCacheSize) * 25) in PreferredCacheSizeInternal()117 if (available < static_cast<int64_t>(kDefaultCacheSize) * 250) in PreferredCacheSizeInternal()118 return kDefaultCacheSize * 5 / 2; in PreferredCacheSizeInternal()128 const int kDefaultCacheSize = 80 * 1024 * 1024; variable193 (base::ClampedNumeric<int64_t>(disk_cache::kDefaultCacheSize) * in PreferredCacheSize()
61 NET_EXPORT_PRIVATE extern const int kDefaultCacheSize;
3777 using disk_cache::kDefaultCacheSize; in TEST_F()3778 int64_t large_size = kDefaultCacheSize; in TEST_F()3781 EXPECT_EQ((kDefaultCacheSize - 1) * 8 / 10, in TEST_F()3783 EXPECT_EQ(kDefaultCacheSize * 8 / 10, in TEST_F()3785 EXPECT_EQ(kDefaultCacheSize - 1, in TEST_F()3789 EXPECT_EQ(kDefaultCacheSize, in TEST_F()3791 EXPECT_EQ(kDefaultCacheSize, in TEST_F()3795 EXPECT_EQ(kDefaultCacheSize, disk_cache::PreferredCacheSize(large_size * 10)); in TEST_F()3796 EXPECT_EQ((kDefaultCacheSize * 25 - 1) / 10, in TEST_F()3800 EXPECT_EQ(kDefaultCacheSize * 25 / 10, in TEST_F()[all …]
23 enum { kDefaultCacheSize = 2 * 1024 * 1024 }; enumerator25 enum { kDefaultCacheSize = 128 * 1024 * 1024 }; enumerator162 once([]{ cache = SkImageFilterCache::Create(kDefaultCacheSize); }); in Get()
112 static constexpr size_t kDefaultCacheSize = 1024;
103 InputLayoutCache::InputLayoutCache() : mLayoutCache(kDefaultCacheSize * 2) {} in InputLayoutCache()
1449 max_size_ = kDefaultCacheSize; in AdjustMaxCacheSize()2039 (max_size_ < std::numeric_limits<int32_t>::max() - kDefaultCacheSize && in CheckIndex()2040 data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { in CheckIndex()