mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Android: Expose getDisplaySize() helper function
Bug: b/136037072 Change-Id: Idecfc3b295ae2a060aa8955c86f94677153a161b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/143797 Reviewed-by: Paulina Hensman <phensman@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28383}
This commit is contained in:
parent
554be4b3cb
commit
7dd9969547
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ public class RendererCommon {
|
|||
* Calculate display size based on minimum fraction of the video that must remain visible,
|
||||
* video aspect ratio, and maximum display size.
|
||||
*/
|
||||
private static Point getDisplaySize(
|
||||
public static Point getDisplaySize(
|
||||
float minVisibleFraction, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) {
|
||||
// If there is no constraint on the amount of cropping, fill the allowed display area.
|
||||
if (minVisibleFraction == 0 || videoAspectRatio == 0) {
|
||||
|
|
Loading…
Reference in a new issue