Review Request 121219: Load IconItem immediately upon componentComplete()

Kai Uwe Broulik kde at privat.broulik.de
Fri Dec 12 23:45:54 UTC 2014



> On Dez. 10, 2014, 6:12 nachm., David Edmundson wrote:
> > src/declarativeimports/core/iconitem.cpp, line 307
> > <https://git.reviewboard.kde.org/r/121219/diff/3/?file=332007#file332007line307>
> >
> >     Found one of the reasons for the blurring.
> >     
> >     To some extent, your first patch was right before I told you to change it (sorry!)
> >     
> >     when the input size is 0,0
> >     
> >     Units::roundToIconSize(0,0) returns 8.
> >     size is now not <= 0 so we load something.
> >     
> >     This means we'll animate when it gets a valid size.
> >     
> >     IMHO roundToIconSize should return 0 in this special case, as right now we have an entire code path that will never be used. 
> >     
> >     I don't know if that will cause other problems.
> >     
> >     
> >     We never hit this before, because setSource() has a size check, but we now call loadPixmap directly in componentComplete()
> 
> David Edmundson wrote:
>     opened here. https://gerrit.vesnicky.cesnet.cz/r/#/c/213/
>     
>     Kai, can you see if it fixes anything/everything?

Thanks!

With this patch I no longer see initially massively pixelated icons in the lock screen. The issue persists for systemtray but I guess the issue lies in there then.


- Kai Uwe


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121219/#review71735
-----------------------------------------------------------


On Dez. 5, 2014, 9:20 nachm., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121219/
> -----------------------------------------------------------
> 
> (Updated Dez. 5, 2014, 9:20 nachm.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> This makes the IconItem load the icon immediately after component creation and not wait 150ms there for no reason which prevents eg. flickering in the OSD when it shows up.
> 
> 
> Diffs
> -----
> 
>   src/declarativeimports/core/iconitem.h 8aecd17 
>   src/declarativeimports/core/iconitem.cpp ed3bb97 
> 
> Diff: https://git.reviewboard.kde.org/r/121219/diff/
> 
> 
> Testing
> -------
> 
> Totally forgot about that, just took it for granted that the OSD wouldn't flicker anymore.
> Resizing applets still has it scale the texture before re-rendering it.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141212/49ab5367/attachment.html>


More information about the Plasma-devel mailing list