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

Issue 2780713004: Hide compositor_frame_sink_id from RenderWidgetHostView* (Closed)

Created:
3 years, 8 months ago by Saman Sami
Modified:
3 years, 8 months ago
Reviewers:
Fady Samuel, piman
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, piman+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, mac-reviews_chromium.org, kalyank, danakj+watch_chromium.org, James Su, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide compositor_frame_sink_id from RenderWidgetHostView* compositor_frame_sink_id won't exist once we switch to mojo, so it should not be exposed to non-IPC methods. Instead of passing compositor_frame_sink_id to the views, we just keep track of it in RenderWidgetHostImpl and call DidCreateNewRendererCompositorFrameSink on the view when its value changes. When DidCreateNewRendererCompositorFrameSink is called, the views ensure that they never return resources of the old RendererCompositorFrameSink by recreating CompositorFrameSinkSupport. bug=697864 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2780713004 Cr-Commit-Position: refs/heads/master@{#460504} Committed: https://chromium.googlesource.com/chromium/src/+/40e8020cbd6c9920cef435a68d5c38addff57c6a

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Fixed mac #

Patch Set 4 : Fix android #

Patch Set 5 : Fix mac #

Patch Set 6 : Fixed Android #

Patch Set 7 : Fixed unit test #

Patch Set 8 : fixed mac #

Patch Set 9 : c #

Patch Set 10 : Added comments #

Patch Set 11 : Fixed typo #

Total comments: 5

Patch Set 12 : Addressed comments #

Patch Set 13 : Updated RenderWidgetHostImpl tests #

Patch Set 14 : Added a comment in android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -348 lines) Patch
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 4 chunks +4 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -20 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 1 2 3 4 5 6 5 chunks +8 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 4 5 6 7 3 chunks +9 lines, -7 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 3 chunks +3 lines, -9 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -21 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host_client_aura.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host_client_aura.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 3 chunks +84 lines, -81 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +58 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 chunks +3 lines, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +9 lines, -33 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 42 chunks +88 lines, -84 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -2 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 73 (62 generated)
Saman Sami
PTAL
3 years, 8 months ago (2017-03-28 19:46:04 UTC) #29
Fady Samuel
Could you please add a longer description of how you actually accomplished this? It would ...
3 years, 8 months ago (2017-03-28 20:20:06 UTC) #32
Saman Sami
PTAL
3 years, 8 months ago (2017-03-28 22:32:09 UTC) #47
Fady Samuel
lgtm
3 years, 8 months ago (2017-03-28 22:33:41 UTC) #48
piman
https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1124 content/browser/renderer_host/render_widget_host_view_android.cc:1124: surface_returned_resources_.clear(); Is it ok not to return the resources? ...
3 years, 8 months ago (2017-03-28 23:07:46 UTC) #50
Saman Sami
https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1124 content/browser/renderer_host/render_widget_host_view_android.cc:1124: surface_returned_resources_.clear(); On 2017/03/28 23:07:46, piman wrote: > Is it ...
3 years, 8 months ago (2017-03-28 23:36:31 UTC) #52
piman
lgtm https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2780713004/diff/200001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1124 content/browser/renderer_host/render_widget_host_view_android.cc:1124: surface_returned_resources_.clear(); On 2017/03/28 23:36:30, Saman Sami wrote: > ...
3 years, 8 months ago (2017-03-29 17:41:49 UTC) #60
Saman Sami
Thanks for the LGTMs. I updated RenderWidgetHostImpl tests. I got rid of the swap IPC ...
3 years, 8 months ago (2017-03-29 18:26:09 UTC) #63
Fady Samuel
On 2017/03/29 18:26:09, Saman Sami wrote: > Thanks for the LGTMs. I updated RenderWidgetHostImpl tests. ...
3 years, 8 months ago (2017-03-29 18:28:51 UTC) #65
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/2780713004/260001
3 years, 8 months ago (2017-03-29 18:43:24 UTC) #70
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 20:00:07 UTC) #73
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/40e8020cbd6c9920cef435a68d5c...

Powered by Google App Engine
This is Rietveld 408576698