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

Issue 2633303003: Clean up RenderWidgetHostView(ChildFrame and Guest) compositing code (Closed)

Created:
3 years, 11 months ago by Saman Sami
Modified:
3 years, 11 months ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify RenderWidgetHostView(ChildFrame and Guest) compositing code This CL achieves two goals: - Right now the code in OnSwapCompositorFrame methods in RenderWidgetHostViewChildFrame and RenderWidgetHostViewGuest are almost identical. This CL extracts the common parts of these two methods into a new method called ProcessCompositorFrame to minimize code duplication. - Switches to cc::SurfaceInfo in IPC communications to simplify the API and be consistent with Mojo which already uses SurfaceInfo. TBR=sunnyps@chromium.org BUG=668890 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2633303003 Cr-Commit-Position: refs/heads/master@{#445585} Committed: https://chromium.googlesource.com/chromium/src/+/56cee024237174f6a5a6281fa534bc3874aee8ef

Patch Set 1 #

Total comments: 1

Patch Set 2 : c #

Patch Set 3 : c #

Total comments: 6

Patch Set 4 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -178 lines) Patch
M cc/ipc/cc_param_traits_macros.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M cc/surfaces/surface_info.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 3 chunks +46 lines, -34 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 1 2 chunks +6 lines, -14 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 2 chunks +18 lines, -65 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest_unittest.cc View 1 4 chunks +10 lines, -23 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/common/frame_messages.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/render_frame_proxy.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (28 generated)
Fady Samuel
This is pretty awesome so far. Please make sure to sort method implementations. https://codereview.chromium.org/2633303003/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc File ...
3 years, 11 months ago (2017-01-17 20:54:12 UTC) #6
Saman Sami
On 2017/01/17 20:54:12, Fady Samuel wrote: > This is pretty awesome so far. Please make ...
3 years, 11 months ago (2017-01-17 21:29:02 UTC) #8
Fady Samuel
https://codereview.chromium.org/2633303003/diff/40001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/2633303003/diff/40001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode376 content/browser/frame_host/render_widget_host_view_child_frame.cc:376: bool RenderWidgetHostViewChildFrame::ShouldRecreateSurface( I think ShouldCreateNewSurfaceId better captures what it's ...
3 years, 11 months ago (2017-01-18 01:03:43 UTC) #18
Saman Sami
PTAL https://codereview.chromium.org/2633303003/diff/40001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/2633303003/diff/40001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode376 content/browser/frame_host/render_widget_host_view_child_frame.cc:376: bool RenderWidgetHostViewChildFrame::ShouldRecreateSurface( On 2017/01/18 01:03:43, Fady Samuel wrote: ...
3 years, 11 months ago (2017-01-18 18:15:53 UTC) #20
Saman Sami
jam@: Please review content/ tsepez@: Please review IPC (content/common and cc/)
3 years, 11 months ago (2017-01-18 18:20:59 UTC) #23
Fady Samuel
lgtm
3 years, 11 months ago (2017-01-18 18:21:32 UTC) #24
Tom Sepez
lgtm
3 years, 11 months ago (2017-01-18 18:39:03 UTC) #25
jam
On 2017/01/18 18:20:59, Saman Sami wrote: > jam@: Please review content/ > tsepez@: Please review ...
3 years, 11 months ago (2017-01-20 15:51:23 UTC) #28
Fady Samuel
+kenrb@ for content/ changes.
3 years, 11 months ago (2017-01-20 16:21:08 UTC) #30
Saman Sami
nasko: Please review content/.
3 years, 11 months ago (2017-01-23 20:22:05 UTC) #32
kenrb
I'm not an owner, but lgtm from my side. We hope to be getting rid ...
3 years, 11 months ago (2017-01-23 20:46:13 UTC) #34
nasko
Rubberstamp LGTM based on kenrb@'s review.
3 years, 11 months ago (2017-01-23 22:46:35 UTC) #35
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/2633303003/60001
3 years, 11 months ago (2017-01-23 22:51:16 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 01:45:47 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/56cee024237174f6a5a6281fa534...

Powered by Google App Engine
This is Rietveld 408576698