commit | 5755fea3fbd2b1deebe0fa935b444b8731c610a6 | [log] [tgz] |
---|---|---|
author | username <majiajun@huawei.com> | Thu Dec 27 09:48:08 2018 +0800 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Tue Mar 12 13:17:26 2019 -0700 |
tree | 14df41c35ef12073d932da46632d079aba3809e9 | |
parent | fe610f0fa30cf58c448f718c05d53208431baf08 [diff] |
Camera: Lazy load sound files to speed up camera startup Lazy loading of sound files can speed up camera startup more than 60ms, it gives users a great experience. Many apps do not playSound when camera open or they may use their own audio files. so we load audio files as needed. Bug: 128432959 Test: install wechat app,open camera,use systrace to see the uiThread wait time. Change-Id: I3b3697cf9d0d919b88276f6d8e7fdd84578f4fcd