#include <surface_control_impl.h>
Public Member Functions | |
| virtual | ~SurfaceControlImpl () |
| SurfaceControlImpl (const SurfaceControlImpl &)=delete | |
| SurfaceControlImpl & | operator= (const SurfaceControlImpl &)=delete |
| SurfaceControlImpl (ANativeWindow *window, const char *debug_name) | |
| bool | IsValid () const override |
| ASurfaceControl * | GetHandle () const override |
| bool | RemoveFromParent () const override |
| Remove the surface control from the hierarchy of nodes presented by the system compositor. | |
Public Member Functions inherited from impeller::android::SurfaceControl | |
| virtual | ~SurfaceControl ()=default |
| Removes the surface control from the presentation hierarchy managed by the system compositor and release the client side reference to the control. At this point, it may be collected when the compositor is also done using it. | |
Friends | |
| class | SurfaceControl |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::android::SurfaceControl | |
| static bool | IsAvailableOnPlatform () |
| static std::unique_ptr< SurfaceControl > | Create (ANativeWindow *window, const char *debug_name=nullptr) |
| Creates a new surface control and adds it as a child of the given window. | |
Definition at line 13 of file surface_control_impl.h.
|
virtual |
Definition at line 25 of file surface_control_impl.cc.
References IsValid(), RemoveFromParent(), and VALIDATION_LOG.
|
delete |
| impeller::android::SurfaceControlImpl::SurfaceControlImpl | ( | ANativeWindow * | window, |
| const char * | debug_name | ||
| ) |
Definition at line 12 of file surface_control_impl.cc.
References impeller::android::GetProcTable(), fml::UniqueObject< T, Traits >::reset(), VALIDATION_LOG, and window.
|
overridevirtual |
Implements impeller::android::SurfaceControl.
Definition at line 36 of file surface_control_impl.cc.
References fml::UniqueObject< T, Traits >::get().
|
overridevirtual |
Implements impeller::android::SurfaceControl.
Definition at line 32 of file surface_control_impl.cc.
References fml::UniqueObject< T, Traits >::is_valid().
Referenced by RemoveFromParent(), and ~SurfaceControlImpl().
|
delete |
|
overridevirtual |
Remove the surface control from the hierarchy of nodes presented by the system compositor.
This is called implicitly when the surface control is collected.
true If the control will be removed from the hierarchy of nodes presented by the system compositor. Implements impeller::android::SurfaceControl.
Definition at line 40 of file surface_control_impl.cc.
References impeller::android::SurfaceTransaction::Apply(), IsValid(), and impeller::android::SurfaceTransaction::SetParent().
Referenced by ~SurfaceControlImpl().
|
friend |
Definition at line 30 of file surface_control_impl.h.