 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_TOOLKIT_ANDROID_SURFACE_TRANSACTION_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_ANDROID_SURFACE_TRANSACTION_H_
11 #include "flutter/fml/unique_object.h"
117 struct UniqueASurfaceTransactionTraits {
118 static ASurfaceTransaction* InvalidValue() {
return nullptr; }
120 static bool IsValid(ASurfaceTransaction* value) {
121 return value != InvalidValue();
124 static void Free(ASurfaceTransaction* value) {
129 fml::UniqueObject<ASurfaceTransaction*, UniqueASurfaceTransactionTraits>
135 #endif // FLUTTER_IMPELLER_TOOLKIT_ANDROID_SURFACE_TRANSACTION_H_
bool SetParent(const SurfaceControl &control, const SurfaceControl *new_parent=nullptr)
Set the new parent control of the given control. If the new parent is null, it is removed from the co...
A wrapper for ASurfaceTransaction. https://developer.android.com/ndk/reference/group/native-activity#...
A wrapper for ASurfaceControl. https://developer.android.com/ndk/reference/group/native-activity#asur...
bool SetBackgroundColor(const SurfaceControl &control, const Color &color)
Encodes the updated background color of the surface control. The update will not be committed till th...
bool SetContents(const SurfaceControl *control, const HardwareBuffer *buffer)
Encodes that the updated contents of a surface control are specified by the given hardware buffer....
A wrapper for AHardwareBuffer https://developer.android.com/ndk/reference/group/a-hardware-buffer.
bool Apply(OnCompleteCallback callback=nullptr)
Applies the updated encoded in the transaction and invokes the callback when the updated are complete...
const ProcTable & GetProcTable()
std::function< void(void)> OnCompleteCallback
SurfaceTransaction & operator=(const SurfaceTransaction &)=delete
static bool IsAvailableOnPlatform()