RESOLVED FIXED Bug 51105
Improve 'arithmetic' operator on feComposite
https://bugs.webkit.org/show_bug.cgi?id=51105
Summary Improve 'arithmetic' operator on feComposite
Zoltan Herczeg
Reported 2010-12-15 06:17:30 PST
Improve arithmetic mode using the new result passing method
Attachments
patch (6.31 KB, patch)
2010-12-15 06:24 PST, Zoltan Herczeg
no flags
alternative patch (6.31 KB, patch)
2010-12-15 06:53 PST, Zoltan Herczeg
no flags
patch (6.18 KB, patch)
2010-12-15 07:02 PST, Zoltan Herczeg
no flags
style patch (1.89 KB, patch)
2010-12-16 03:53 PST, Zoltan Herczeg
no flags
Zoltan Herczeg
Comment 1 2010-12-15 06:24:22 PST
WebKit Review Bot
Comment 2 2010-12-15 06:26:23 PST
Attachment 76641 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebCore/ChangeLog', u'WebCore/platform/graphics/filters/FEComposite.cpp']" exit_code: 1 WebCore/platform/graphics/filters/FEComposite.cpp:120: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/platform/graphics/filters/FEComposite.cpp:121: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/platform/graphics/filters/FEComposite.cpp:144: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 3 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zoltan Herczeg
Comment 3 2010-12-15 06:53:24 PST
Created attachment 76642 [details] alternative patch
WebKit Review Bot
Comment 4 2010-12-15 06:55:30 PST
Attachment 76642 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebCore/ChangeLog', u'WebCore/platform/graphics/filters/FEComposite.cpp']" exit_code: 1 WebCore/platform/graphics/filters/FEComposite.cpp:120: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/platform/graphics/filters/FEComposite.cpp:121: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/platform/graphics/filters/FEComposite.cpp:144: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 3 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zoltan Herczeg
Comment 5 2010-12-15 07:02:52 PST
Created attachment 76643 [details] patch Wrong patch before... sry
WebKit Review Bot
Comment 6 2010-12-15 07:04:07 PST
Attachment 76643 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebCore/ChangeLog', u'WebCore/platform/graphics/filters/FEComposite.cpp']" exit_code: 1 WebCore/platform/graphics/filters/FEComposite.cpp:145: Missing space after , [whitespace/comma] [3] WebCore/platform/graphics/filters/FEComposite.cpp:149: Missing space after , [whitespace/comma] [3] WebCore/platform/graphics/filters/FEComposite.cpp:154: Missing space after , [whitespace/comma] [3] WebCore/platform/graphics/filters/FEComposite.cpp:157: Missing space after , [whitespace/comma] [3] Total errors found: 4 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dirk Schulze
Comment 7 2010-12-15 09:12:25 PST
Comment on attachment 76643 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=76643&action=review The code looks good. It's just sad, that you check m_type twice, but I also don't see another way without code duplication :-/ r=me Just one note, "feArithmeticFilter" is not the best choice. "Improve 'arithmetic' operator on feComposite" or something like that. And plese fix the style issues. > WebCore/ChangeLog:12 > + The existing tests cover this feature. How, since you didn't change the behavior but just the performance?!? ;-)
Zoltan Herczeg
Comment 8 2010-12-16 00:36:06 PST
Landed in https://bugs.webkit.org/show_bug.cgi?id=51105 (Measured the perf gain, and realized that there are some non-visible changes (rounding changes) on some dynamic-tests, and added them to the patch)
Dirk Schulze
Comment 9 2010-12-16 00:39:25 PST
(In reply to comment #8) > Landed in https://bugs.webkit.org/show_bug.cgi?id=51105 > > (Measured the perf gain, and realized that there are some non-visible changes (rounding changes) on some dynamic-tests, and added them to the patch) You added the wrong link and didn't clear the review flag.
Zoltan Herczeg
Comment 10 2010-12-16 00:49:22 PST
Zoltan Herczeg
Comment 11 2010-12-16 03:53:21 PST
Created attachment 76750 [details] style patch
Zoltan Herczeg
Comment 12 2010-12-16 03:53:47 PST
style bugs
WebKit Commit Bot
Comment 13 2010-12-16 05:21:40 PST
Comment on attachment 76750 [details] style patch Rejecting attachment 76750 [details] from commit-queue. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-3', 'apply-attachment', '--non-interactive', 76750]" exit_code: 2 Last 500 characters of output: ailed to merge in the changes. Patch failed at 0001 2010-12-16 Yury Semikhatsky <yurys@chromium.org> When you have resolved this problem run "git rebase --continue". If you would prefer to skip this patch, instead run "git rebase --skip". To restore the original branch and stop rebasing run "git rebase --abort". rebase refs/remotes/origin/master: command returned error: 1 Died at WebKitTools/Scripts/update-webkit line 132. Failed to run "['WebKitTools/Scripts/update-webkit']" exit_code: 2 Full output: http://queues.webkit.org/results/7191060
WebKit Review Bot
Comment 14 2010-12-16 15:38:15 PST
http://trac.webkit.org/changeset/74177 might have broken Leopard Intel Debug (Tests)
WebKit Commit Bot
Comment 15 2010-12-17 18:32:38 PST
Comment on attachment 76750 [details] style patch Clearing flags on attachment: 76750 Committed r74310: <http://trac.webkit.org/changeset/74310>
WebKit Commit Bot
Comment 16 2010-12-17 18:32:45 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.