◆ testOesRendering()
void org.webrtc.GlRectDrawerTest.testOesRendering |
( |
| ) |
throws InterruptedException |
|
inline |
The purpose here is to test GlRectDrawer.oesDraw(). Unfortunately, there is no easy way to create an OES texture, which is needed for input to oesDraw(). Most of the test is concerned with creating OES textures in the following way:
- Create SurfaceTexture with help from SurfaceTextureHelper.
- Create an EglBase with the SurfaceTexture as EGLSurface.
- Upload RGB texture with known content.
- Draw the RGB texture onto the EglBase with the SurfaceTexture as target.
- Wait for an OES texture to be produced. The actual oesDraw() test is this:
- Create an EglBase with a pixel buffer as target.
- Render the OES texture onto the pixel buffer.
- Read back the pixel buffer and compare it with the known RGB data.
Stub class to convert RGB ByteBuffers to OES textures by drawing onto a SurfaceTexture.
◆ testRgbRendering()
void org.webrtc.GlRectDrawerTest.testRgbRendering |
( |
| ) |
|
|
inline |
◆ testYuvRendering()
void org.webrtc.GlRectDrawerTest.testYuvRendering |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/webrtc/sdk/android/instrumentationtests/src/org/webrtc/GlRectDrawerTest.java