Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313211

Summary: [CSS] Optimizing Linear Gradients
Product: [Eclipse Project] e4 Reporter: Thomas Schindl <tom.schindl>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Optimize created image size
none
Update Patch which implements all points none

Description Thomas Schindl CLA 2010-05-17 14:18:11 EDT
Created attachment 168784 [details]
Optimize created image size

I think we can optimize the Gradient-Support a bit:
a) The gradient image must not be the full size of the composite but it's enough 
   to make it 2px width because the background-image is tiled anyways

b) We could even check then the size of the current image before disposing 
   because if the y-size hasn't been changed we can simply skip recreating and 
   resetting

c) Is it a good idea to dipose the old image before setting a new one, or is this 
   a possible raise condition (it should be changed anyways if we implement b))
Comment 1 Thomas Schindl CLA 2010-05-17 14:33:45 EDT
Created attachment 168790 [details]
Update Patch which implements all points
Comment 2 Thomas Schindl CLA 2010-05-18 18:36:26 EDT
released changes to HEAD - Bogdan if you are not comfortable with the changes simply roll them back or correct them