Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

by Romain Guy » Tue, 09 Feb 2010 13:39:21 GMT


Sponsored Links
 This bug has been identified and fixed. The fix will be part of FroYo.



>



Why setting TextView.Ellipsize as Marquee cause its sibling view in linearlayout redraw

by Romain Guy » Wed, 10 Feb 2010 10:36:01 GMT


 The Dev Tools screen updates are reliable. The views were not redrawn
on screen, but their drawing code was executed.



>


Sponsored Links


Other Threads

1. SurfaceFlinger uses too much cpu

Hi,

This is regarding SurfaceFlinger performance. If you think I have a
point here please let me know.

I have observed during my Camera application SurfaceFlinger consumes
too much of cpu (>80%).
Tried to know its cause, its found out that it is actually drawing the
lipregion twice consecutively. By drawing twice I mean, the
coordinates values are same for the 2 clip regions which gets drawn in
sequence.
The lipregion is calculated from Layer visibleRegion and dirty
region. So in this case 2 layers in the currentstate are such that
they are calculating similar clip region.

I tried a hack not to draw the clip twice in
SurfaceFlinger::composeSurfaces() if it has same coordinates value,
before it calls layer->draw(clip) . It worked with no visible side
effects and cpu performance improved. That makes me think that it
might be a bug or scope of improvement in surfaceflinger.

Log showing 2 consecutive Layers calculating same region to draw:

E/SurfaceFlinger(  976): + LayerBuffer 0x3b3920
E/SurfaceFlinger(  976):       z=    21010
D/Region  (  976):   Region visibleRegionScreen (this=0x3b3930,
count=1)
D/Region  (  976):     [ 32,  26, 208, 261]
D/Region  (  976):   Region clipDUMP (this=0x44fa19c4, count=1)
D/Region  (  976):     [ 32,  26, 208, 261]
E/SurfaceFlinger(  976): composeSurfaces layer->draw()
E/SurfaceFlinger(  976): + Layer 0x3e3110
E/SurfaceFlinger(  976):       z=    21015
D/Region  (  976):   Region visibleRegionScreen (this=0x3e3120,
count=1)
D/Region  (  976):     [  0,   0, 240, 320]
D/Region  (  976):   Region clipDUMP (this=0x44fa19c4, count=1)
D/Region  (  976):     [ 32,  26, 208, 261]
E/SurfaceFlinger(  976): composeSurfaces layer->draw()

Any suggestions will be highly appreaciated..

Thanks,
Naruka

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. User Mode Device Drivers

Hi
I am trying to write a User Mode Device Driver for sensors for an Embedded
Device.
Can you please suggest how to write and any suggestions which drivers can be
moved out of kernel to user space
http://www.linuxjournal.com/article/7466?page=0,0


Thanks and Regards,
Kavitha

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. USB Android gadget

4. Possible to only kernel upgrade?

5. Activity pause timeout for HistoryRecord?

6. How to get Lat and Long about one bus line from google maps

7. How can I disable an item of ListView?