Merge lp://qastaging/~fboucault/camera-app/no_cpu_usage_in_photo_roll into lp://qastaging/camera-app/staging

Proposed by Florian Boucault
Status: Merged
Approved by: Ugo Riboni
Approved revision: 620
Merged at revision: 621
Proposed branch: lp://qastaging/~fboucault/camera-app/no_cpu_usage_in_photo_roll
Merge into: lp://qastaging/camera-app/staging
Diff against target: 127 lines (+34/-24)
4 files modified
SlideshowView.qml (+1/-1)
ViewFinderOverlay.qml (+2/-7)
ViewFinderOverlayLoader.qml (+4/-0)
ViewFinderView.qml (+27/-16)
To merge this branch: bzr merge lp://qastaging/~fboucault/camera-app/no_cpu_usage_in_photo_roll
Reviewer Review Type Date Requested Status
Ugo Riboni (community) Needs Information
Review via email: mp+279791@code.qastaging.launchpad.net

Commit message

Fixed 2 CPU wasters:
- when in photo roll's grid mode, do not have the slideshow mode's ActivityIndicator running.
- when in photo roll, disable viewfinder.

To post a comment you must log in.
Revision history for this message
Florian Boucault (fboucault) wrote :

A little more details: camera.stop() was never meant to unload the camera stack. It only sets the camera's state to LoadedState, essentially stopping the viewfinder. That alone is not enough for other apps to use the camera hardware (with the Android's camera stack we use in Ubuntu Touch).

Unfortunately qtubuntu-camera was fully unloading the camera stack when the camera's state was set to LoadedState, the MR at [1] fixes that and therefore breaks the app.

[1] https://code.launchpad.net/~fboucault/qtubuntu-camera/unloaded_when_inactive/+merge/279792

Revision history for this message
Ugo Riboni (uriboni) wrote :

Code LGTM except minor comments. Works well functionally with the related qtubuntu-camera MR.

review: Needs Information
Revision history for this message
Florian Boucault (fboucault) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches