| Index: webrtc/api/androidtests/src/org/webrtc/GlRectDrawerTest.java
|
| diff --git a/webrtc/api/androidtests/src/org/webrtc/GlRectDrawerTest.java b/webrtc/api/androidtests/src/org/webrtc/GlRectDrawerTest.java
|
| index 8625ccd2be282363d1af38b9b131fc3aea6799cb..46e8e48498400b3357af99db27169e5ee7cd2293 100644
|
| --- a/webrtc/api/androidtests/src/org/webrtc/GlRectDrawerTest.java
|
| +++ b/webrtc/api/androidtests/src/org/webrtc/GlRectDrawerTest.java
|
| @@ -98,8 +98,7 @@
|
|
|
| // Draw the RGB frame onto the pixel buffer.
|
| final GlRectDrawer drawer = new GlRectDrawer();
|
| - drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), WIDTH, HEIGHT,
|
| - 0 /* viewportX */, 0 /* viewportY */, WIDTH, HEIGHT);
|
| + drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT);
|
|
|
| // Download the pixels in the pixel buffer as RGBA. Not all platforms support RGB, e.g. Nexus 9.
|
| final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4);
|
| @@ -146,8 +145,7 @@
|
|
|
| // Draw the YUV frame onto the pixel buffer.
|
| final GlRectDrawer drawer = new GlRectDrawer();
|
| - drawer.drawYuv(yuvTextures, RendererCommon.identityMatrix(), WIDTH, HEIGHT,
|
| - 0 /* viewportX */, 0 /* viewportY */, WIDTH, HEIGHT);
|
| + drawer.drawYuv(yuvTextures, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT);
|
|
|
| // Download the pixels in the pixel buffer as RGBA. Not all platforms support RGB, e.g. Nexus 9.
|
| final ByteBuffer data = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4);
|
| @@ -235,8 +233,7 @@
|
| GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH,
|
| HEIGHT, 0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, rgbPlane);
|
| // Draw the RGB data onto the SurfaceTexture.
|
| - drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), WIDTH, HEIGHT,
|
| - 0 /* viewportX */, 0 /* viewportY */, WIDTH, HEIGHT);
|
| + drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT);
|
| eglBase.swapBuffers();
|
| }
|
|
|
| @@ -274,8 +271,7 @@
|
| // Draw the OES texture on the pixel buffer.
|
| eglBase.makeCurrent();
|
| final GlRectDrawer drawer = new GlRectDrawer();
|
| - drawer.drawOes(listener.oesTextureId, listener.transformMatrix, WIDTH, HEIGHT,
|
| - 0 /* viewportX */, 0 /* viewportY */, WIDTH, HEIGHT);
|
| + drawer.drawOes(listener.oesTextureId, listener.transformMatrix, 0, 0, WIDTH, HEIGHT);
|
|
|
| // Download the pixels in the pixel buffer as RGBA. Not all platforms support RGB, e.g. Nexus 9.
|
| final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4);
|
|
|