diff --git a/lib/ui/painting/engine_layer.cc b/lib/ui/painting/engine_layer.cc index 7ac9c98497f410eb1664a3078e386f10ef8df21b..c10c493e7f556378675e51f37d13f0b97d723a4d 100644 --- a/lib/ui/painting/engine_layer.cc +++ b/lib/ui/painting/engine_layer.cc @@ -24,7 +24,9 @@ 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. - return 3000; + // TODO(https://github.com/flutter/flutter/issues/31498): calculate the cost + // of the layer more accurately. + return 200000; }; IMPLEMENT_WRAPPERTYPEINFO(ui, EngineLayer);