Searched refs:layoutAspectRatio (Results 1 – 2 of 2) sorted by relevance
209 final float layoutAspectRatio = getWidth() / (float) getHeight(); in updateSurfaceSize() local213 if (frameAspectRatio > layoutAspectRatio) { in updateSurfaceSize()214 drawnFrameWidth = (int) (rotatedFrameHeight * layoutAspectRatio); in updateSurfaceSize()218 drawnFrameHeight = (int) (rotatedFrameWidth / layoutAspectRatio); in updateSurfaceSize()
145 private float layoutAspectRatio; field in EglRenderer385 public void setLayoutAspectRatio(float layoutAspectRatio) { in setLayoutAspectRatio() argument386 logD("setLayoutAspectRatio: " + layoutAspectRatio); in setLayoutAspectRatio()388 this.layoutAspectRatio = layoutAspectRatio; in setLayoutAspectRatio()640 drawnAspectRatio = layoutAspectRatio != 0f ? layoutAspectRatio : frameAspectRatio; in renderFrameOnRenderThread()