RESOLVED WONTFIX 103465
[chromium] Add latency calculation plumbing
https://bugs.webkit.org/show_bug.cgi?id=103465
Summary [chromium] Add latency calculation plumbing
John Bauman
Reported 2012-11-27 16:31:49 PST
[chromium] Add latency calculation plumbing
Attachments
Patch (14.95 KB, patch)
2012-11-27 16:36 PST, John Bauman
no flags
Patch (15.12 KB, patch)
2012-11-28 14:15 PST, John Bauman
no flags
Patch (31.30 KB, patch)
2012-12-03 17:48 PST, John Bauman
no flags
Patch (31.77 KB, patch)
2012-12-03 19:18 PST, John Bauman
no flags
Patch (33.67 KB, patch)
2012-12-07 15:02 PST, John Bauman
no flags
Patch (42.69 KB, patch)
2012-12-17 07:50 PST, John Bauman
no flags
Patch (42.84 KB, patch)
2012-12-17 14:18 PST, John Bauman
no flags
Patch (40.77 KB, patch)
2013-01-02 19:59 PST, John Bauman
benjamin: review-
John Bauman
Comment 1 2012-11-27 16:36:36 PST
John Bauman
Comment 2 2012-11-28 14:15:40 PST
WebKit Review Bot
Comment 3 2012-11-28 14:18:34 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Darin Fisher (:fishd, Google)
Comment 4 2012-11-28 21:27:32 PST
Comment on attachment 176576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176576&action=review > Source/WebKit/chromium/public/WebCompositorInputHandler.h:30 > +#include <stdint.h> WebCommon.h already gets you int64_t, so you shouldn't need #include <stdint.h> > Source/WebKit/chromium/public/WebCompositorInputHandler.h:48 > virtual void handleInputEvent(const WebInputEvent&) = 0; should the old handleInputEvent be modified to call the new one to help with migration?
John Bauman
Comment 5 2012-11-28 21:32:38 PST
Comment on attachment 176576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176576&action=review >> Source/WebKit/chromium/public/WebCompositorInputHandler.h:30 >> +#include <stdint.h> > > WebCommon.h already gets you int64_t, so you shouldn't need #include <stdint.h> It looks to me like it only adds up to int32_t, and then only on Windows. Maybe I'm missing something. >> Source/WebKit/chromium/public/WebCompositorInputHandler.h:48 >> virtual void handleInputEvent(const WebInputEvent&) = 0; > > should the old handleInputEvent be modified to call the new one to help with migration? I did that in the implementation in WebCompositorInputHandlerImpl, though I suppose I could move that change here.
Darin Fisher (:fishd, Google)
Comment 6 2012-11-28 21:42:40 PST
(In reply to comment #5) > (From update of attachment 176576 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=176576&action=review > > >> Source/WebKit/chromium/public/WebCompositorInputHandler.h:30 > >> +#include <stdint.h> > > > > WebCommon.h already gets you int64_t, so you shouldn't need #include <stdint.h> > > It looks to me like it only adds up to int32_t, and then only on Windows. Maybe I'm missing something. Hmm, that's surprising. I would expect to see int64_t defined there. Doesn't stddef.h end up including stdint.h? I guess my main point is that it seems like WebCommon.h is trying to define int*_t, and if it is doing a poor job of that, then perhaps we should fix it. > >> Source/WebKit/chromium/public/WebCompositorInputHandler.h:48 > >> virtual void handleInputEvent(const WebInputEvent&) = 0; > > > > should the old handleInputEvent be modified to call the new one to help with migration? > > I did that in the implementation in WebCompositorInputHandlerImpl, though I suppose I could move that change here. I see. It is common to do it in the interface header, and to also add a comment indicating that the old function is DEPRECATED.
John Bauman
Comment 7 2012-12-03 17:48:49 PST
WebKit Review Bot
Comment 8 2012-12-03 17:50:43 PST
Attachment 177383 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
John Bauman
Comment 9 2012-12-03 18:48:57 PST
Ok, I'll call that error a false-positive.
Peter Beverloo (cr-android ews)
Comment 10 2012-12-03 19:08:14 PST
Comment on attachment 177383 [details] Patch Attachment 177383 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/15133185
John Bauman
Comment 11 2012-12-03 19:18:50 PST
WebKit Review Bot
Comment 12 2012-12-03 19:22:36 PST
Attachment 177396 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
John Bauman
Comment 13 2012-12-07 15:02:21 PST
John Bauman
Comment 14 2012-12-17 07:50:30 PST
John Bauman
Comment 15 2012-12-17 14:18:42 PST
WebKit Review Bot
Comment 16 2012-12-17 14:22:10 PST
Attachment 179800 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
James Robinson
Comment 17 2013-01-02 15:32:39 PST
Comment on attachment 179800 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=179800&action=review > Source/Platform/chromium/public/WebGraphicsContext3D.h:151 > + class WebGraphicsLatencyInfoCallbackCHROMIUM { As I mentioned on the chromium side, I think having this setup on the context itself is going to cause lots of dependency headaches. Can you route this through something surface-aware? Maybe cc::OutputSurface? > Source/Platform/chromium/public/WebInputHandlerClient.h:57 > + virtual bool scrollByIfPossible(int64_t, WebPoint point, WebSize size) { return scrollByIfPossible(point, size); } Name the int64_t parameter, I can't figure out what it means from the signature alone. There could be any number of scrollBy..() calls for the same input event (think of animations, flings, etc) so this is unclear. > Source/WebKit/chromium/public/WebCompositorInputHandler.h:46 > + virtual void handleInputEvent(const WebInputEvent&, int64_t inputNumber) = 0; Instead of adding an additional parameter to every function that uses a WebInputEvent, did you consider putting it in the WebInputEvent struct itself? Then you won't have to update all the interfaces and it will pass through functions that are ignorant of the inputNumber system without any extra code.
John Bauman
Comment 18 2013-01-02 17:50:37 PST
(In reply to comment #17) > (From update of attachment 179800 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=179800&action=review > > > > Source/WebKit/chromium/public/WebCompositorInputHandler.h:46 > > + virtual void handleInputEvent(const WebInputEvent&, int64_t inputNumber) = 0; > > Instead of adding an additional parameter to every function that uses a WebInputEvent, did you consider putting it in the WebInputEvent struct itself? Then you won't have to update all the interfaces and it will pass through functions that are ignorant of the inputNumber system without any extra code. Yeah, I tried doing that originally, but the result was kind of odd. Every event had to be copied at the RenderWidgetHostImpl::SendInputEvent stage to add the input number (if I wanted to avoid polluting a ton of code with knowledge of the input number). It seems more straightforward to have the input number be lower-level, a part of ViewMsg_HandleInputEvent, and it can be manually passed through the few functions that need to know about it.
John Bauman
Comment 19 2013-01-02 19:59:16 PST
WebKit Review Bot
Comment 20 2013-01-02 20:03:56 PST
Attachment 181135 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/Platform/ChangeLog', u'Source/Platf..." exit_code: 1 Source/Platform/chromium/public/WebCommon.h:77: int64_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Note You need to log in before you can comment on or make changes to this bug.