From 54c25619ba8487516b44b708e8a8b146662ff757 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Thu, 25 Apr 2019 06:55:31 -0700 Subject: [PATCH] Revert "Increase the memory usage estimate for EngineLayer (#8700)" (flutter/engine#8738) This reverts commit 0163a0e8dc6020c614b58fcba2e20141c9d6e162. --- engine/src/flutter/lib/ui/painting/engine_layer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting/engine_layer.cc b/engine/src/flutter/lib/ui/painting/engine_layer.cc index c10c493e7f..7ac9c98497 100644 --- a/engine/src/flutter/lib/ui/painting/engine_layer.cc +++ b/engine/src/flutter/lib/ui/painting/engine_layer.cc @@ -24,9 +24,7 @@ size_t EngineLayer::GetAllocationSize() { // Provide an approximation of the total memory impact of this object to the // Dart GC. The ContainerLayer may hold references to a tree of other layers, // which in turn may contain Skia objects. - // TODO(https://github.com/flutter/flutter/issues/31498): calculate the cost - // of the layer more accurately. - return 200000; + return 3000; }; IMPLEMENT_WRAPPERTYPEINFO(ui, EngineLayer);