You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SafeCloseImageReaderProxy#wrapImageProxy() is private and annotated
@GuardedBy("mLock") and all access already occurs within a synchronized
block, so the internal synchronized block can be removed.
SafeCloseImageReaderProxy#safeClose() is used externally, and
internally contains a synchronized block, so it does not need to be
annotated @GuardedBy("mLock")
Private member variables SafeCloseImageReaderProxy#mOutstandingImages
and SafeCloseImageReaderProxy#mIsClosed do not need to be volatile
since they are only written/read when the same monitor lock is held.
Test: ./gradlew camera:camera-core:connectedCheck
Change-Id: I8baec99202f0e228aec03f3ac051cbefb72e4c3b
0 commit comments