diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2023-04-14 00:27:23 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2023-04-14 00:27:23 -0700 |
commit | 308c98f901f540b2a61bde5363434d613b27fd0b (patch) | |
tree | a009a2d5eb74f021d5f20fbb36c221a124def03d /cmds/bootanimation/BootAnimation.h | |
parent | b77f39e30b9df5c24ec1d8428bf1b5f2946560b5 (diff) | |
parent | 5a47c505d9dd08c276dad9d6fbd157f7207fbb56 (diff) |
Merge 5a47c505d9dd08c276dad9d6fbd157f7207fbb56 on remote branch
Change-Id: Ic8a4252f1c0cdf4a82e9dadcce37606fdcaa68cd
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r-- | cmds/bootanimation/BootAnimation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index 86582053b4e1..8683b71a3762 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -30,6 +30,8 @@ #include <utils/Thread.h> #include <binder/IBinder.h> +#include <ui/Rotation.h> + #include <EGL/egl.h> #include <GLES2/gl2.h> @@ -200,6 +202,8 @@ private: ui::Size limitSurfaceSize(int width, int height) const; void resizeSurface(int newWidth, int newHeight); void projectSceneToWindow(); + void rotateAwayFromNaturalOrientationIfNeeded(); + ui::Rotation parseOrientationProperty(); bool shouldStopPlayingPart(const Animation::Part& part, int fadedFramesCount, int lastDisplayedProgress); |