summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-06-02 11:05:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-02 11:05:55 +0000
commitcbea0ab58f29e15162cb47e1fa55a136e4738310 (patch)
treeba3c7eb93acca77ce466d3b8cc83991a6dae0f63 /cmds/bootanimation/BootAnimation.h
parent6d5e349bcdb7531fd226f1741179655eb14c88f8 (diff)
parent047802d41650f52b8adee936ce2c2e8f0738ba12 (diff)
Merge "Render boot animation with same size as framebuffer" into rvc-dev
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index 36cd91bdee0d..6ba7fd450fbb 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -170,6 +170,7 @@ private:
bool findBootAnimationFileInternal(const std::vector<std::string>& files);
bool preloadAnimation();
EGLConfig getEglConfig(const EGLDisplay&);
+ ui::Size limitSurfaceSize(int width, int height) const;
void resizeSurface(int newWidth, int newHeight);
void checkExit();
@@ -181,6 +182,8 @@ private:
Texture mAndroid[2];
int mWidth;
int mHeight;
+ int mMaxWidth = 0;
+ int mMaxHeight = 0;
int mCurrentInset;
int mTargetInset;
bool mUseNpotTextures = false;