|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|