commit | a6572422e8940e176e3630c23a331927b5b08853 | [log] [tgz] |
---|---|---|
author | Senpo Hu <senpo@google.com> | Fri Jun 12 16:20:46 2015 -0700 |
committer | Senpo Hu <senpo@google.com> | Thu Jun 25 13:32:07 2015 -0400 |
tree | 6e26cfffe472cd69836d7d37aefc1ccf7c77af9a | |
parent | 8d8b329da25456adb5ee45e0450680654114e125 [diff] |
Fix transform issue in CaptureIntent. On M, EventOnTextureViewLayoutChanged comes earlier during app initialization in StateForeground which doesn't handle it. So here in StateReadyForCapture, we pull the current preview layout size and inform ResourceSurfaceTexture to allow it to calculate transform. Noted that we also need to bring this fix to Ivvavik. Bug: 21786937 Bug: 20173626 Change-Id: I417aef2f09247e77059fc5b066cbf10602ce5cf1