-
Christian Fremerey authored
This CL simplifies the threading of class VideoCaptureCamera2.java and by doing so resolves potential issues caused by concurrent access to member variables and Android video API calls. See https://bugs.chromium.org/p/chromium/issues/detail?id=857530 for details on issues. The simplified model is to (still) have the constructor and public API calls happen on a native thread, and to use a single dedicated thread owned by the class instance to post to, do work on, and call back into the native code. This CL is part of a series, see Design Doc at https://docs.google.com/document/d/1h1kva4VR1gaV3HVXaSYZFY41icfaB58j-WnHmJdyqc8/edit?usp=sharing Bug: 857530 Change-Id: I75ffcc4a14f2395d833d80f300acef7b456676e8 Reviewed-on: https://chromium-review.googlesource.com/1117857 Commit-Queue: Christian Fremerey <chfremer@chromium.org> Reviewed-by:
Emircan Uysaler <emircan@chromium.org> Cr-Commit-Position: refs/heads/master@{#576155}
87b3a36a