Flutter Engine
The Flutter Engine
|
Concrete implementation of PlatformViewAndroidJNI
that is compiled with the Android toolchain.
More...
#include <platform_view_android_jni_impl.h>
Public Member Functions | |
PlatformViewAndroidJNIImpl (const fml::jni::JavaObjectWeakGlobalRef &java_object) | |
~PlatformViewAndroidJNIImpl () override | |
void | FlutterViewHandlePlatformMessage (std::unique_ptr< flutter::PlatformMessage > message, int responseId) override |
Sends a platform message. The message may be empty. More... | |
void | FlutterViewHandlePlatformMessageResponse (int responseId, std::unique_ptr< fml::Mapping > data) override |
Responds to a platform message. The data may be a nullptr . More... | |
void | FlutterViewUpdateSemantics (std::vector< uint8_t > buffer, std::vector< std::string > strings, std::vector< std::vector< uint8_t > > string_attribute_args) override |
Sends semantics tree updates. More... | |
void | FlutterViewUpdateCustomAccessibilityActions (std::vector< uint8_t > actions_buffer, std::vector< std::string > strings) override |
Sends new custom accessibility events. More... | |
void | FlutterViewOnFirstFrame () override |
Indicates that FlutterView should start painting pixels. More... | |
void | FlutterViewOnPreEngineRestart () override |
Indicates that a hot restart is about to happen. More... | |
void | SurfaceTextureAttachToGLContext (JavaLocalRef surface_texture, int textureId) override |
Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread. More... | |
bool | SurfaceTextureShouldUpdate (JavaLocalRef surface_texture) override |
Returns true if surface_texture should be updated. More... | |
void | SurfaceTextureUpdateTexImage (JavaLocalRef surface_texture) override |
Updates the texture image to the most recent frame from the image stream. More... | |
void | SurfaceTextureGetTransformMatrix (JavaLocalRef surface_texture, SkMatrix &transform) override |
Gets the transform matrix from the SurfaceTexture. Then, it updates the transform matrix, so it fill the canvas and preserve the aspect ratio. More... | |
void | SurfaceTextureDetachFromGLContext (JavaLocalRef surface_texture) override |
Detaches a SurfaceTexture from the OpenGL ES context. More... | |
JavaLocalRef | ImageProducerTextureEntryAcquireLatestImage (JavaLocalRef image_texture_entry) override |
Acquire the latest image available. More... | |
JavaLocalRef | ImageGetHardwareBuffer (JavaLocalRef image) override |
Grab the HardwareBuffer from image. More... | |
void | ImageClose (JavaLocalRef image) override |
Call close on image. More... | |
void | HardwareBufferClose (JavaLocalRef hardware_buffer) override |
Call close on hardware_buffer. More... | |
void | FlutterViewOnDisplayPlatformView (int view_id, int x, int y, int width, int height, int viewWidth, int viewHeight, MutatorsStack mutators_stack) override |
Positions and sizes a platform view if using hybrid composition. More... | |
void | FlutterViewDisplayOverlaySurface (int surface_id, int x, int y, int width, int height) override |
Positions and sizes an overlay surface in hybrid composition. More... | |
void | FlutterViewBeginFrame () override |
Initiates a frame if using hybrid composition. More... | |
void | FlutterViewEndFrame () override |
Indicates that the current frame ended. It's used to clean up state. More... | |
std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata > | FlutterViewCreateOverlaySurface () override |
Instantiates an overlay surface in hybrid composition and provides the necessary metadata to operate the surface in C. More... | |
void | FlutterViewDestroyOverlaySurfaces () override |
Destroys the overlay surfaces. More... | |
std::unique_ptr< std::vector< std::string > > | FlutterViewComputePlatformResolvedLocale (std::vector< std::string > supported_locales_data) override |
Computes the locale Android would select. More... | |
double | GetDisplayRefreshRate () override |
double | GetDisplayWidth () override |
double | GetDisplayHeight () override |
double | GetDisplayDensity () override |
bool | RequestDartDeferredLibrary (int loading_unit_id) override |
double | FlutterViewGetScaledFontSize (double unscaled_font_size, int configuration_id) const override |
Public Member Functions inherited from flutter::PlatformViewAndroidJNI | |
virtual | ~PlatformViewAndroidJNI () |
virtual void | FlutterViewHandlePlatformMessage (std::unique_ptr< flutter::PlatformMessage > message, int responseId)=0 |
Sends a platform message. The message may be empty. More... | |
virtual void | FlutterViewHandlePlatformMessageResponse (int responseId, std::unique_ptr< fml::Mapping > data)=0 |
Responds to a platform message. The data may be a nullptr . More... | |
virtual void | FlutterViewUpdateSemantics (std::vector< uint8_t > buffer, std::vector< std::string > strings, std::vector< std::vector< uint8_t > > string_attribute_args)=0 |
Sends semantics tree updates. More... | |
virtual void | FlutterViewUpdateCustomAccessibilityActions (std::vector< uint8_t > actions_buffer, std::vector< std::string > strings)=0 |
Sends new custom accessibility events. More... | |
virtual void | FlutterViewOnFirstFrame ()=0 |
Indicates that FlutterView should start painting pixels. More... | |
virtual void | FlutterViewOnPreEngineRestart ()=0 |
Indicates that a hot restart is about to happen. More... | |
virtual void | SurfaceTextureAttachToGLContext (JavaLocalRef surface_texture, int textureId)=0 |
Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread. More... | |
virtual bool | SurfaceTextureShouldUpdate (JavaLocalRef surface_texture)=0 |
Returns true if surface_texture should be updated. More... | |
virtual void | SurfaceTextureUpdateTexImage (JavaLocalRef surface_texture)=0 |
Updates the texture image to the most recent frame from the image stream. More... | |
virtual void | SurfaceTextureGetTransformMatrix (JavaLocalRef surface_texture, SkMatrix &transform)=0 |
Gets the transform matrix from the SurfaceTexture. Then, it updates the transform matrix, so it fill the canvas and preserve the aspect ratio. More... | |
virtual void | SurfaceTextureDetachFromGLContext (JavaLocalRef surface_texture)=0 |
Detaches a SurfaceTexture from the OpenGL ES context. More... | |
virtual JavaLocalRef | ImageProducerTextureEntryAcquireLatestImage (JavaLocalRef image_texture_entry)=0 |
Acquire the latest image available. More... | |
virtual JavaLocalRef | ImageGetHardwareBuffer (JavaLocalRef image)=0 |
Grab the HardwareBuffer from image. More... | |
virtual void | ImageClose (JavaLocalRef image)=0 |
Call close on image. More... | |
virtual void | HardwareBufferClose (JavaLocalRef hardware_buffer)=0 |
Call close on hardware_buffer. More... | |
virtual void | FlutterViewOnDisplayPlatformView (int view_id, int x, int y, int width, int height, int viewWidth, int viewHeight, MutatorsStack mutators_stack)=0 |
Positions and sizes a platform view if using hybrid composition. More... | |
virtual void | FlutterViewDisplayOverlaySurface (int surface_id, int x, int y, int width, int height)=0 |
Positions and sizes an overlay surface in hybrid composition. More... | |
virtual void | FlutterViewBeginFrame ()=0 |
Initiates a frame if using hybrid composition. More... | |
virtual void | FlutterViewEndFrame ()=0 |
Indicates that the current frame ended. It's used to clean up state. More... | |
virtual std::unique_ptr< PlatformViewAndroidJNI::OverlayMetadata > | FlutterViewCreateOverlaySurface ()=0 |
Instantiates an overlay surface in hybrid composition and provides the necessary metadata to operate the surface in C. More... | |
virtual void | FlutterViewDestroyOverlaySurfaces ()=0 |
Destroys the overlay surfaces. More... | |
virtual std::unique_ptr< std::vector< std::string > > | FlutterViewComputePlatformResolvedLocale (std::vector< std::string > supported_locales_data)=0 |
Computes the locale Android would select. More... | |
virtual double | GetDisplayRefreshRate ()=0 |
virtual double | GetDisplayWidth ()=0 |
virtual double | GetDisplayHeight ()=0 |
virtual double | GetDisplayDensity ()=0 |
virtual bool | RequestDartDeferredLibrary (int loading_unit_id)=0 |
virtual double | FlutterViewGetScaledFontSize (double unscaled_font_size, int configuration_id) const =0 |
Concrete implementation of PlatformViewAndroidJNI
that is compiled with the Android toolchain.
Definition at line 17 of file platform_view_android_jni_impl.h.
|
explicit |
Definition at line 1278 of file platform_view_android_jni_impl.cc.
|
overridedefault |
|
overridevirtual |
Initiates a frame if using hybrid composition.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1747 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Computes the locale Android would select.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1819 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Instantiates an overlay surface in hybrid composition and provides the necessary metadata to operate the surface in C.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1774 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Destroys the overlay surfaces.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1805 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Positions and sizes an overlay surface in hybrid composition.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1728 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Indicates that the current frame ended. It's used to clean up state.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1760 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1347 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Sends a platform message. The message may be empty.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1284 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Responds to a platform message. The data may be a nullptr
.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1316 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Positions and sizes a platform view if using hybrid composition.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1647 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Indicates that FlutterView should start painting pixels.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1413 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Indicates that a hot restart is about to happen.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1426 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Sends new custom accessibility events.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1389 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Sends semantics tree updates.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1364 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1900 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1882 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1846 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1864 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Call close on hardware_buffer.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1636 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Call close on image.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1627 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Grab the HardwareBuffer from image.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1612 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Acquire the latest image available.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1585 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1918 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1439 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Detaches a SurfaceTexture from the OpenGL ES context.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1563 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Gets the transform matrix from the SurfaceTexture. Then, it updates the transform
matrix, so it fill the canvas and preserve the aspect ratio.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1506 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Returns true if surface_texture should be updated.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1462 of file platform_view_android_jni_impl.cc.
|
overridevirtual |
Updates the texture image to the most recent frame from the image stream.
Implements flutter::PlatformViewAndroidJNI.
Definition at line 1485 of file platform_view_android_jni_impl.cc.