Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313211 - [CSS] Optimizing Linear Gradients
Summary: [CSS] Optimizing Linear Gradients
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 14:18 EDT by Thomas Schindl CLA
Modified: 2010-05-18 18:36 EDT (History)
1 user (show)

See Also:


Attachments
Optimize created image size (1.40 KB, patch)
2010-05-17 14:18 EDT, Thomas Schindl CLA
no flags Details | Diff
Update Patch which implements all points (3.02 KB, patch)
2010-05-17 14:33 EDT, Thomas Schindl CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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