Flutter Engine
hint_freed_delegate.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_LIB_UI_HINT_FREED_DELEGATE_H_
6 #define FLUTTER_LIB_UI_HINT_FREED_DELEGATE_H_
7 
8 namespace flutter {
9 
11  public:
12  //----------------------------------------------------------------------------
13  /// @brief Notifies the engine that native bytes might be freed if a
14  /// garbage collection ran at the next NotifyIdle period.
15  ///
16  /// @param[in] size The number of bytes freed. This size adds to any
17  /// previously supplied value, rather than replacing.
18  ///
19  virtual void HintFreed(size_t size) = 0;
20 };
21 
22 } // namespace flutter
23 
24 #endif // FLUTTER_LIB_UI_HINT_FREED_DELEGATE_H_
constexpr std::size_t size(T(&array)[N])
Definition: size.h:13
virtual void HintFreed(size_t size)=0
Notifies the engine that native bytes might be freed if a garbage collection ran at the next NotifyId...