summaryrefslogtreecommitdiffstats
path: root/gfx/skbitmap_operations.cc
Commit message (Collapse)AuthorAgeFilesLines
* Windows: Fix opacity of drag images.thakis@chromium.org2010-07-151-0/+27
| | | | | | | | | BUG=XXX TEST=Go to google.com, drag logo around. Preview image should now look nice. Review URL: http://codereview.chromium.org/2963009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52484 0039d316-1c4b-4281-b951-d872f2087c98
* Optimize SkBitmapOperations::CreateHSLShiftedBitmap() (used for theme tinting).erg@chromium.org2010-04-261-4/+318
| | | | | | | | | | | | | | | | | | | | | | The previous implementation of CreateHSLShiftedBitmap is naive to a fault. For each pixel in the bitmap, the pixel was unpremultiplied (division), converted to HSL for work (floating point operations), shifted (more floating point), and then converted back to a premultiplied pixel value. CreateHSLShiftedBitmap dominates theme install time and is a significant part of startup time when a theme pak needs to be built. This is Trung's work from almost four months ago revived from his dead hard drive to change at least some of the cases into fixed-point, falling back to the old implementation when we don't (yet) have an optimized path. In one case (Karim Rashid (v3)), this dropped theme install time from 1.6 seconds to ~0.25 seconds. BUG=none TEST=SkBitmapOperationsTest.ValidateHSLShift, watch some themes load faster. Review URL: http://codereview.chromium.org/1687010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45592 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files to toplevel gfx.ben@chromium.org2010-03-191-0/+356
TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42071 0039d316-1c4b-4281-b951-d872f2087c98