0ec045201975bc12ac12007615c099c5e98d202a |
|
06-May-2015 |
Alan Newberger <alann@google.com> |
Refresh metadata for every filmstrip item update. Current filmstrip item updates: 1. call CameraFilmstripDataAdapter.updateItemAt which then calls FilmstripView.updateViewItem 2. FilmstripView.updateViewItem updates the view then calls CameraActivity.updateUiByData 3. CameraActivity.updateUiByData calls CameraFilmstripDataAdapter.updateMetadataAt 4. MetadataUpdateTask calls FilmstripView.updateViewItem again if metadata was loaded The double updateViewItems disrupts SessionItem -> PhotoItem transitions, and for some reason for LB causes the second updateViewItem to only request tiny thumbnails. For a very targeted fix, we instead make step 1 do the metadata load, and then updateViewItem is only called once. The code in step 3 still executes but is a no-op since metadata was already loaded in step one. Tested with Camera mode, Pano/PhotoSphere, LB, redoing an LB, calling out to editor and changing a photo, and taking a video. Bug: 20862631 Change-Id: Ib8b112c2ef1b5a364a5569d1391ef359d1b5fb1a
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
689348be49bf1e5e5f705d55915f87292d9506ed |
|
23-Mar-2015 |
Paul Rohde <codelogic@google.com> |
Clamp pixels and bounds for filmstrip images. This change does a more extensive set of checks and constraints based on the maximum area (to prevent jank) and adds clamping for the bounds of the image based on the maximum supported texture size of the device to prevent blank frames. Bug: 19871547 Change-Id: Ib33e6e591638fb4dfefb60ddea488818e985495d
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
995083b53be47e1e27133e403da0b63a03d07ea7 |
|
20-Feb-2015 |
Alan Newberger <alann@google.com> |
Reduce memory footprint of session bitmap cache. Convert storage bitmap cache to an LRU cache to have a fixed upper bound on usage. Evict bitmaps after a session is complete. Bug: 19124117 Change-Id: I4a5dd9f15c3b986601c4a92477edf9346f190de1
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
b6a8810b7a5ac0df1e19efd26628c01bcb32b97b |
|
19-Feb-2015 |
Paul Rohde <codelogic@google.com> |
Remove CanSwipeInFullScreen attribute. This fixes the swipe guesture problem by removing the mostly unused canSwipeInFullScreen attribute on filmstrip items and checking existing usages to ensure they still work. Bug: 18948437 Change-Id: I7d8c9fba4b0cf3db6fc3d60afe37d527c0732318
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
d70b22919f8d212bf11abd6e6724b3a395ef02c1 |
|
04-Feb-2015 |
Alan Newberger <alann@google.com> |
Remove elevations from filmstrip Elevations were not applied to SessionItems causing bad z-order behavior. As the shadows are not really visible, just removing elevation entirely, this also seems to improve performance. Bug: 17742801 Change-Id: I8fedad3b6c083f7cde349e51021f928d719edb40
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
77d9f023e76816e5da7bd067ad46cc0e9c98623f |
|
03-Feb-2015 |
Paul Rohde <codelogic@google.com> |
Fix filmstrip jank on N4. Bug: 19164291 Bug: 19220382 Bug: 19020507 Change-Id: Id1c2011b29b1cee206593fb395d9b4a4c89e71ab
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
005bb2f26e73c4c9daad41b615f6dd414396f625 |
|
23-Jan-2015 |
Alan Newberger <alann@google.com> |
Remove placeholders from filmstrip methods, add PhotoItem/SessionItem integration In this CL we add the ability for a PhotoItem to use a Session bitmap as a placeholder. We also move general placeholder management out of the method call stack, moving a single static initialization in CameraActivity into a field in FilmstripItemBase for use by FilmstripItems. Bug: 18977838 Change-Id: Ic1b0dc11fd0e4c85b9b310235e6d3122cf1543ce
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|
8ee16b8a323ffa20e6fb1270d498ec445f64defc |
|
18-Dec-2014 |
Paul Rohde <codelogic@google.com> |
Refactor the filmstrip backing data. - Remove unused fields and code. - Rename classes and methods to be consistent with usage - Make data more immutable - Add Location and Metadata classes for typed data access. - Use Date instead of long for DateTime representations. - Filmstrip prefix for filmstrip specific code. - Cleaner Glide implementations. - Initialize Glide bitmap pool. - Eagerly load large image sizes when scroll stops. Change-Id: I3b51d42416ca076c80bf7db441d257659174b47d
/packages/apps/Camera2/src/com/android/camera/data/PhotoItem.java
|