Chromium Code Reviews| Index: talk/app/webrtc/java/android/org/webrtc/EglBase.java |
| diff --git a/talk/app/webrtc/java/android/org/webrtc/EglBase.java b/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
| index 3e7020db2723e6bec26022940fa8d0192793758f..3dd53d62a30d3a3b5f8f298f10682e634ca6ba72 100644 |
| --- a/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
| +++ b/talk/app/webrtc/java/android/org/webrtc/EglBase.java |
| @@ -127,6 +127,18 @@ public final class EglBase { |
| return eglSurface != EGL14.EGL_NO_SURFACE; |
| } |
| + public int surfaceWidth() { |
| + final int widthArr[] = new int[1]; |
|
AlexG
2015/08/04 00:27:23
nit: widthArr -> widthArray?
magjed_webrtc
2015/08/04 17:05:04
Done.
|
| + EGL14.eglQuerySurface(eglDisplay, eglSurface, EGL14.EGL_WIDTH, widthArr, 0); |
| + return widthArr[0]; |
| + } |
| + |
| + public int surfaceHeight() { |
| + final int heightArr[] = new int[1]; |
|
AlexG
2015/08/04 00:27:23
dito: heightArr -> heightArray?
magjed_webrtc
2015/08/04 17:05:05
Done.
|
| + EGL14.eglQuerySurface(eglDisplay, eglSurface, EGL14.EGL_HEIGHT, heightArr, 0); |
| + return heightArr[0]; |
| + } |
| + |
| public void releaseSurface() { |
| if (eglSurface != EGL14.EGL_NO_SURFACE) { |
| EGL14.eglDestroySurface(eglDisplay, eglSurface); |