diff options
| author | 2023-03-13 23:11:05 -0700 | |
|---|---|---|
| committer | 2023-03-13 23:11:05 -0700 | |
| commit | 24e88de38bee0cf1c86fe660b9f1cb10fda42680 (patch) | |
| tree | ee7d13a80ff185e71815c03fd3c3a8e7f50435a8 /cmds/bootanimation/BootAnimation.h | |
| parent | be72f04d2658e02ddf97d5df9c087449581f5c62 (diff) | |
| parent | 0b79c1e4a8907f2538c16b828a760f67137430dd (diff) | |
Merge Android 13 QPR2
Bug: 273316506
Merged-In: I90551b705381bee71df837b05bb0f3ff7ea98e54
Change-Id: I19a38ab2fb465a6a9ea5597e23ba73a8100839a5
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); |