Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 | 1 éve | |
---|---|---|
.. | ||
android | 1 éve | |
BUILD.gn | 1 éve | |
DEPS | 1 éve | |
README.md | 1 éve | |
bitmap_request.cc | 1 éve | |
bitmap_request.h | 1 éve | |
compositor_status.h | 1 éve | |
player_compositor_delegate.cc | 1 éve | |
player_compositor_delegate.h | 1 éve | |
player_compositor_delegate_unittest.cc | 1 éve |
The player displays a paint preview that has been previously recorded.
Currently, the player is only fully implemented for Android. However, there
are a few platform-independent base classes (PlayerCompositorDelegate
, CompositorStatus
, BitmapRequest
) than can be used to extend the playback support for other platforms.
PlayerCompositorDelegate
uses the StartCompositorService
API. Alternatively, playback support for other platforms can be provided by
using StartCompositorService
directly for more flexibility.
The remainder of this doc describes the Android-specific implementation.
Want to use the player? Construct a PlayerManager
and use PlayerManager#getView
to display it.
As mentioned in the main README
, a paint preview can have multiple frames in a nested structure.
Consequently, the player is desinged in a nested structure as well, to
facilitate the display of mulitple nested frames.
android/java/src/.../player/
: This directory contains per-player classes.
In another word, these classes are aware that the player might have multiple
frames and are not involved in the logic for displaying a single frame.android/java/src/.../player/frame
: This directory contains per-frame
classes. These are responsible for displaying a single frame.PlayerManager
:
Entry point for using the player. When created it initializes the compositor
and populates a hierarchy of player frames based on the paint preview.PlayerCompositorDelegateImpl
PlayerFrameMediator
PlayerFrameView