Merge lp:~paulliu/unity8/lp1350891_ScrollBackground into lp:unity8
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~paulliu/unity8/lp1350891_ScrollBackground |
| Merge into: | lp:unity8 |
| Diff against target: |
57 lines (+8/-5) 3 files modified
qml/Dash/DashBackground.qml (+1/-1) qml/Dash/DashContent.qml (+0/-4) qml/Dash/GenericScopeView.qml (+7/-0) |
| To merge this branch: | bzr merge lp:~paulliu/unity8/lp1350891_ScrollBackground |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-03-19 | |
| Albert Astals Cid (community) | Needs Fixing on 2015-03-09 | ||
| Gerry Boland | Needs Fixing on 2015-02-23 | ||
| Andrea Cimitan (community) | 2015-02-17 | Needs Information on 2015-02-23 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-04-10.
Commit Message
Scrollable Background
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
None
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.
* Did you make sure that your branch does not contain spurious tags?
Yes.
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
Need review.
- 1437. By Ying-Chun Liu on 2015-02-17
-
Remove old DashBackground.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1437
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Andrea Cimitan (cimi) wrote : | # |
Looks like we will have one big image per each scope doing this way, wouldn't be better to have one single DashBackground somewhere in Dash.qml or where it could be static and not change? Would it be possible?
| Gerry Boland (gerboland) wrote : | # |
Qt is smart enough to cache the image, as long as its source size remains unchanged in the different instances, so there won't be duplication there.
Problems I see:
1. sourceSize is not being set on the image. This means Qt will upload the decoded RGB data to the GPU at the size of the image, and the GPU will have to scale it down to the screen resolution for _every_ frame. Please set the image sourceSize.
Also ensure the calculation is correct first time. If you make it a binding and the sourceSize changes, Qt will re-read the JPG and rescale it on the CPU - which destroys performance horribly.
2. When the sourceSize is set, the CPU has to read the JPG file and scale the image down to the sourceSize requested (about the screen resolution). For Kryllin, that's scaling 1080x1920 down to 540x960, which is a lot of work. Suspect would be better to supply a couple of pre-scaled images which Qt can choose from. Else we need mechanism to scale the image once and cache it somewhere for all future uses.
2. Why JPEG? it's a lossy format. PNG would be more visually accurate (but does have an alpha channel unlike JPEG, so may actually perform worse. Worth testing)
3. You should remove the unused images from the repo
4. There's a DashBackground in Dash.qml too, is it necessary now?
5. + id: colorBackground
necessary?
Please carefully ensure graphical performance is not impact by this change.
| Ying-Chun Liu (paulliu) wrote : | # |
ok. I'll write a test case doing the scrolling.
And compare the user time diff before/after the patch.
| Albert Astals Cid (aacid) wrote : | # |
You have bad tags, please run strip-tags.py
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1437
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Unmerged revisions
- 1437. By Ying-Chun Liu on 2015-02-17
-
Remove old DashBackground.
- 1436. By Ying-Chun Liu on 2015-02-13
-
Add suru background
- 1435. By Ying-Chun Liu on 2015-02-13
-
Merge trunk
- 1434. By Ying-Chun Liu on 2014-11-27
-
merge trunk
- 1433. By Ying-Chun Liu on 2014-11-27
-
use inside flickable
- 1432. By Ying-Chun Liu on 2014-11-14
-
Scrolling background

FAILED: Continuous integration, rev:1436 jenkins. qa.ubuntu. com/job/ unity8- ci/5329/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 1390 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/493/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/494 jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/494 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1228 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1388 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1388/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 18111
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/5329/ rebuild
http://