[Webkit-unassigned] [Bug 89130] New: avoid min and max check in Color constructor when needed.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 14 15:24:31 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89130
Summary: avoid min and max check in Color constructor when
needed.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arno at renevier.net
Hi,
Color constructor accepts integers arguments and checks that those integers are between 0 and 255.
But sometimes, Color constructor is called with unsigned char, and those checks are therefore unneeded (for example in cairo ImageBuffer::putByteArray)
So, I'm thinking a specialized constructor for Color accepting unsigned char, and not performing min/max checks would improve performance of Color initialization in those cases.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list