Revert "Android: Generalize and make TextureBufferImpl public"
This reverts commit 28111d7fa0b94e37a5eeba616eb806c65b12560e. Reason for revert: Crashes video_quality_loopback_test. Original change's description: > Android: Generalize and make TextureBufferImpl public > > This CL generalizes TextureBufferImpl so it's useful from other contexts than > from a SurfaceTextureHelper, and fixes a bug in cropAndScale(). It also exposes > the class in the api so that clients don't have to duplicate the logic. > > Bug: None > Change-Id: Ib82aa8bee025ec14de74a7be9d91fd4e5298a248 > Reviewed-on: https://webrtc-review.googlesource.com/69819 > Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> > Commit-Queue: Magnus Jedvert <magjed@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#22875} TBR=magjed@webrtc.org,sakal@webrtc.org Change-Id: Ica7fc181fec70b8b79f39f0e114eef81a03aa116 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: None Reviewed-on: https://webrtc-review.googlesource.com/70240 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22878}
This commit is contained in:

committed by
Commit Bot

parent
f7ffd94ad2
commit
64051d4975
@ -320,7 +320,12 @@ public class SurfaceTextureHelper {
|
||||
* buffer calls returnTextureFrame() when it is released.
|
||||
*/
|
||||
public TextureBuffer createTextureBuffer(int width, int height, Matrix transformMatrix) {
|
||||
return new TextureBufferImpl(width, height, TextureBuffer.Type.OES, oesTextureId,
|
||||
transformMatrix, handler, yuvConverter, this ::returnTextureFrame);
|
||||
return new TextureBufferImpl(
|
||||
width, height, TextureBuffer.Type.OES, oesTextureId, transformMatrix, this, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
returnTextureFrame();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user