Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Issue 2780373002: Use observer pattern instead of sniffing SwapCompositorFrame IPC (Closed)

Created:
3 years, 8 months ago by Saman Sami
Modified:
3 years, 8 months ago
Reviewers:
Fady Samuel, dgozman, piman
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use observer pattern instead of sniffing SwapCompositorFrame IPC ViewHostMsg_SwapCompositorFrame will be gone once we switch to mojo, so we need a different mechanism for observing arrival of CompositorFrames in classes other than RenderWidgetHostImpl. Now RenderWidgetHostImpl notifies WebContentsImpl on arrival of a CompositorFrame and other classes can become a WebContentsObserver to get notified. TBR=fsamuel@chromium.org Review-Url: https://codereview.chromium.org/2780373002 Cr-Commit-Position: refs/heads/master@{#461869} Committed: https://chromium.googlesource.com/chromium/src/+/90fb8163ea87ebee81746205d0f6b80fe508a70f

Patch Set 1 #

Patch Set 2 : c #

Patch Set 3 : c #

Patch Set 4 : c #

Patch Set 5 : c #

Patch Set 6 : c #

Patch Set 7 : c #

Patch Set 8 : Don't send metadata #

Total comments: 6

Patch Set 9 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -110 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -9 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -31 lines 0 comments Download
M content/browser/renderer_host/input/composited_scrolling_browsertest.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/non_blocking_event_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -15 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -32 lines 0 comments Download

Messages

Total messages: 54 (37 generated)
Saman Sami
PTAL
3 years, 8 months ago (2017-03-30 17:14:06 UTC) #22
Saman Sami
I'm still not entirely sure that all the bots will be green but it might ...
3 years, 8 months ago (2017-03-30 17:15:07 UTC) #23
Saman Sami
OK looks like the failing test passed piman PTAL
3 years, 8 months ago (2017-03-30 17:38:11 UTC) #25
Fady Samuel
I like that this decouples us further from Chrome IPC, but I'm not sure how ...
3 years, 8 months ago (2017-03-30 17:42:05 UTC) #26
Saman Sami
On 2017/03/30 17:42:05, Fady Samuel wrote: > I like that this decouples us further from ...
3 years, 8 months ago (2017-03-30 17:46:05 UTC) #27
piman
On 2017/03/30 17:46:05, Saman Sami wrote: > On 2017/03/30 17:42:05, Fady Samuel wrote: > > ...
3 years, 8 months ago (2017-03-30 22:46:35 UTC) #30
Saman Sami
On 2017/03/30 22:46:35, piman wrote: > On 2017/03/30 17:46:05, Saman Sami wrote: > > On ...
3 years, 8 months ago (2017-03-30 23:31:10 UTC) #31
piman
Mmh, devtools is inside of content, so it shouldn't have to go through the public ...
3 years, 8 months ago (2017-03-30 23:54:14 UTC) #33
Saman Sami
On 2017/03/30 23:54:14, piman wrote: > Mmh, devtools is inside of content, so it shouldn't ...
3 years, 8 months ago (2017-03-31 00:29:37 UTC) #34
dgozman
On 2017/03/30 23:54:14, piman wrote: > Mmh, devtools is inside of content, so it shouldn't ...
3 years, 8 months ago (2017-03-31 01:07:32 UTC) #35
Saman Sami
PTAL We no longer send the metadata as a parameter. RenderWidgetHostImpl keeps the last metadata ...
3 years, 8 months ago (2017-04-04 15:31:58 UTC) #38
piman
I like the approach. Couple minor things. https://codereview.chromium.org/2780373002/diff/130001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2780373002/diff/130001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2612 content/browser/renderer_host/render_widget_host_impl.cc:2612: last_frame_metadata_ = ...
3 years, 8 months ago (2017-04-04 17:34:46 UTC) #41
Saman Sami
PTAL https://codereview.chromium.org/2780373002/diff/130001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2780373002/diff/130001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2612 content/browser/renderer_host/render_widget_host_impl.cc:2612: last_frame_metadata_ = frame.metadata.Clone(); On 2017/04/04 17:34:46, piman wrote: ...
3 years, 8 months ago (2017-04-04 17:49:54 UTC) #44
piman
lgtm
3 years, 8 months ago (2017-04-04 19:59:43 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2780373002/150001
3 years, 8 months ago (2017-04-04 22:16:18 UTC) #50
Fady Samuel
lgtm
3 years, 8 months ago (2017-04-04 22:25:15 UTC) #51
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 22:31:46 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/90fb8163ea87ebee81746205d0f6...

Powered by Google App Engine
This is Rietveld 408576698