Android SurfaceTextureHelper: Distinguish thread names for decoder and camera

Review URL: https://codereview.webrtc.org/1843973002

Cr-Commit-Position: refs/heads/master@{#12176}
This commit is contained in:
magjed
2016-03-31 00:54:15 -07:00
committed by Commit bot
parent af9e4ac4bc
commit 82b750b80e
8 changed files with 47 additions and 44 deletions

View File

@ -52,8 +52,9 @@ class SurfaceTextureHelper {
* Construct a new SurfaceTextureHelper sharing OpenGL resources with |sharedContext|. A dedicated
* thread and handler is created for handling the SurfaceTexture.
*/
public static SurfaceTextureHelper create(final EglBase.Context sharedContext) {
final HandlerThread thread = new HandlerThread(TAG);
public static SurfaceTextureHelper create(
final String threadName, final EglBase.Context sharedContext) {
final HandlerThread thread = new HandlerThread(threadName);
thread.start();
final Handler handler = new Handler(thread.getLooper());