RESOLVED FIXED 107325
[Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
https://bugs.webkit.org/show_bug.cgi?id=107325
Summary [Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
Leandro Graciá Gil
Reported 2013-01-18 14:24:59 PST
The didCommit event is currently exposed via the didBecomeReadyForAdditionalInput method, but re-utilizing this for purposes other than input is misleading and can lead to issues in the future if this code changes. To solve this, we should expose didCommit as a separate event.
Attachments
Patch (2.17 KB, patch)
2013-01-18 14:29 PST, Leandro Graciá Gil
no flags
Patch (2.24 KB, patch)
2013-01-22 15:49 PST, Leandro Graciá Gil
no flags
Patch (2.20 KB, patch)
2013-01-22 17:12 PST, Leandro Graciá Gil
no flags
Leandro Graciá Gil
Comment 1 2013-01-18 14:29:00 PST
WebKit Review Bot
Comment 2 2013-01-18 14:32:00 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 3 2013-01-20 23:54:30 PST
Comment on attachment 183546 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183546&action=review > Source/WebKit/chromium/public/WebWidgetClient.h:88 > + virtual void didCommit() { } nit: can you be more specific with the name of this method? based on didCommitAndDrawCompositorFrame, perhaps the name of this method should be didCommitCompositorFrame? there are many things that use the term "commit" in web browsers, and it could be rather confusing to see a didCommit method implemented in a WebWidgetClient subclass, which may be concerned with many things beyond just page rendering.
Leandro Graciá Gil
Comment 4 2013-01-22 15:48:59 PST
Comment on attachment 183546 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183546&action=review >> Source/WebKit/chromium/public/WebWidgetClient.h:88 >> + virtual void didCommit() { } > > nit: can you be more specific with the name of this method? based on didCommitAndDrawCompositorFrame, perhaps the name of this method should be didCommitCompositorFrame? > > there are many things that use the term "commit" in web browsers, and it could be rather confusing to see a didCommit method implemented in a WebWidgetClient subclass, which may be concerned with many things beyond just page rendering. Good point. I'll be renaming didCommit to didCommitCompositorFrame as suggested. Thanks.
Leandro Graciá Gil
Comment 5 2013-01-22 15:49:17 PST
James Robinson
Comment 6 2013-01-22 16:32:48 PST
Comment on attachment 184063 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184063&action=review Code is good, comments are not. Documentation is important, so I think it's worth going another review round. > Source/WebKit/chromium/ChangeLog:8 > + Expose didCommitCompositorFrame as a separate event to not mix it with didBecomeReadyForAdditionalInput. Please describe what this patch is adding, i.e. "Add a notification on WebWidgetClient called when ...." > Source/WebKit/chromium/public/WebWidgetClient.h:87 > + // Called for compositing mode when a thread commit operation has finished. This notification will be called in single-threaded mode as well, so this comment isn't entirely accurate.
Leandro Graciá Gil
Comment 7 2013-01-22 17:12:30 PST
Comment on attachment 184063 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184063&action=review >> Source/WebKit/chromium/ChangeLog:8 >> + Expose didCommitCompositorFrame as a separate event to not mix it with didBecomeReadyForAdditionalInput. > > Please describe what this patch is adding, i.e. "Add a notification on WebWidgetClient called when ...." Done. >> Source/WebKit/chromium/public/WebWidgetClient.h:87 >> + // Called for compositing mode when a thread commit operation has finished. > > This notification will be called in single-threaded mode as well, so this comment isn't entirely accurate. Done.
Leandro Graciá Gil
Comment 8 2013-01-22 17:12:43 PST
James Robinson
Comment 9 2013-01-22 17:19:36 PST
Comment on attachment 184087 [details] Patch Eh, ok
WebKit Review Bot
Comment 10 2013-01-22 18:26:33 PST
Comment on attachment 184087 [details] Patch Clearing flags on attachment: 184087 Committed r140495: <http://trac.webkit.org/changeset/140495>
WebKit Review Bot
Comment 11 2013-01-22 18:26:37 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.