diff --git a/blink/renderer/platform/widget/compositing/layer_tree_settings.cc b/blink/renderer/platform/widget/compositing/layer_tree_settings.cc index 27e07893d32aa9ae8b1832426e11cbad4f019728..66879175b5b842a4b7b773affb84feff86268a9f 100644 --- a/blink/renderer/platform/widget/compositing/layer_tree_settings.cc +++ b/blink/renderer/platform/widget/compositing/layer_tree_settings.cc @@ -182,17 +182,9 @@ cc::ManagedMemoryPolicy GetGpuMemoryPolicy( // Clamp the observed value to a specific range on Android or OHOS. actual.bytes_limit_when_visible = std::max( actual.bytes_limit_when_visible, static_cast(8 * 1024 * 1024)); - Platform* platform = Platform::Current(); - if (platform->GetDrawMode()) { - actual.bytes_limit_when_visible = - std::min(actual.bytes_limit_when_visible, - static_cast(2000 * 1024 * 1024)); - } else { - actual.bytes_limit_when_visible = + actual.bytes_limit_when_visible = std::min(actual.bytes_limit_when_visible, static_cast(256 * 1024 * 1024)); - } - } actual.priority_cutoff_when_visible = gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING;