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

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed)

Created:
4 years, 5 months ago by Fady Samuel
Modified:
4 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Dedup IPCs to return resources to client ViewMsg_ReclaimCompositorResources and ViewMsg_SwapCompositorFrameAck are virtually identical IPCs to return resources to clients. The only difference is one acknowledges a swap and the other returns resources independent of a swap. This is both confusing and an unnecessary maintenance burden. This CL deletes ViewMsg_SwapCompositorFrameAck and replaces it with ViewMsg_ReclaimCompositorResources and a bool for is_swap_ack. This CL also removes CompositorFrameAck which is no longer necessary as it only contains one field. BUG=none TBR=ben@chromium.org for services/ui/public/cpp/lib/output_surface.cc CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b62b78229e838b0140af7973e83ada9fcce28a19 Cr-Commit-Position: refs/heads/master@{#405660}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add bool is_swap_ack + remove CompositorFrameAck #

Total comments: 7

Patch Set 3 : Addressed comments + bot issues #

Patch Set 4 : Fixed OOPIF #

Patch Set 5 : Added three unit tests #

Total comments: 10

Patch Set 6 : Rebased #

Patch Set 7 : Fix OutputSurfaceIdChange #

Patch Set 8 : Addressed comments #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -391 lines) Patch
M android_webview/browser/browser_view_renderer.cc View 1 3 chunks +8 lines, -10 lines 0 comments Download
M android_webview/browser/render_thread_manager.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M cc/cc.gyp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M cc/ipc/cc_param_traits.h View 1 2 chunks +0 lines, -11 lines 0 comments Download
M cc/ipc/cc_param_traits.cc View 1 1 chunk +0 lines, -18 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
D cc/output/compositor_frame_ack.h View 1 1 chunk +0 lines, -30 lines 0 comments Download
D cc/output/compositor_frame_ack.cc View 1 1 chunk +0 lines, -13 lines 0 comments Download
M cc/output/delegating_renderer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/delegating_renderer.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M cc/output/output_surface.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/output_surface_client.h View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M cc/output/renderer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M cc/surfaces/surface_display_output_surface.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -4 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M cc/test/fake_output_surface_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/test_delegating_output_surface.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/android/synchronous_compositor_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/synchronous_compositor_host.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 2 chunks +6 lines, -10 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 1 chunk +4 lines, -9 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.h View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 chunks +28 lines, -30 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 3 chunks +9 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 1 chunk +4 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 52 chunks +209 lines, -59 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 1 chunk +4 lines, -9 lines 0 comments Download
M content/common/android/sync_compositor_messages.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M content/public/browser/android/synchronous_compositor.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/public/test/test_synchronous_compositor_android.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M content/public/test/test_synchronous_compositor_android.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/gpu/compositor_forwarding_message_filter.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 5 3 chunks +8 lines, -16 lines 0 comments Download
M services/ui/public/cpp/lib/output_surface.cc View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 89 (49 generated)
Fady Samuel
Hooray! Another net negative CL! Looks like there's a lot of cruft that has crept ...
4 years, 5 months ago (2016-07-13 14:15:51 UTC) #4
Fady Samuel
+dcheng@ for IPC.
4 years, 5 months ago (2016-07-13 14:16:37 UTC) #7
dcheng
ipc lgtm https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc File content/renderer/gpu/compositor_output_surface.cc (right): https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc#newcode164 content/renderer/gpu/compositor_output_surface.cc:164: client_->DidSwapBuffersComplete(); Does it matter that OnReclaimResources didn't ...
4 years, 5 months ago (2016-07-13 14:26:58 UTC) #10
Fady Samuel
https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc File content/renderer/gpu/compositor_output_surface.cc (right): https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc#newcode164 content/renderer/gpu/compositor_output_surface.cc:164: client_->DidSwapBuffersComplete(); On 2016/07/13 14:26:58, dcheng wrote: > Does it ...
4 years, 5 months ago (2016-07-13 15:29:48 UTC) #13
Fady Samuel
On 2016/07/13 15:29:48, Fady Samuel wrote: > https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc > File content/renderer/gpu/compositor_output_surface.cc (right): > > https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc#newcode164 ...
4 years, 5 months ago (2016-07-13 15:42:45 UTC) #14
Fady Samuel
On 2016/07/13 15:42:45, Fady Samuel wrote: > On 2016/07/13 15:29:48, Fady Samuel wrote: > > ...
4 years, 5 months ago (2016-07-13 15:45:32 UTC) #15
Fady Samuel
On 2016/07/13 15:45:32, Fady Samuel wrote: > On 2016/07/13 15:42:45, Fady Samuel wrote: > > ...
4 years, 5 months ago (2016-07-13 16:05:16 UTC) #16
danakj
https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc File content/renderer/gpu/compositor_output_surface.cc (right): https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc#newcode164 content/renderer/gpu/compositor_output_surface.cc:164: client_->DidSwapBuffersComplete(); On 2016/07/13 15:29:48, Fady Samuel wrote: > On ...
4 years, 5 months ago (2016-07-13 18:40:20 UTC) #18
piman
On Wed, Jul 13, 2016 at 8:29 AM, <fsamuel@chromium.org> wrote: > > > https://codereview.chromium.org/2147873003/diff/1/content/renderer/gpu/compositor_output_surface.cc > ...
4 years, 5 months ago (2016-07-13 18:54:33 UTC) #19
Fady Samuel
PTAL everyone! This updated CL adds the is_swap_ack bool and gets rid of CompositorFrameAck.
4 years, 5 months ago (2016-07-13 20:48:11 UTC) #21
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names without "master." prefix is ...
4 years, 5 months ago (2016-07-13 20:49:31 UTC) #24
Fady Samuel
+boliu@ for android_webview
4 years, 5 months ago (2016-07-13 20:49:35 UTC) #26
piman
https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc File content/browser/renderer_host/delegated_frame_host.cc (right): https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc#newcode513 content/browser/renderer_host/delegated_frame_host.cc:513: SendReclaimCompositorResources(output_surface_id, false /* is_swap_ack */); this one is a ...
4 years, 5 months ago (2016-07-13 20:59:15 UTC) #28
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-13 21:02:07 UTC) #29
Fady Samuel
PTAL Antoine! https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc File content/browser/renderer_host/delegated_frame_host.cc (right): https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc#newcode513 content/browser/renderer_host/delegated_frame_host.cc:513: SendReclaimCompositorResources(output_surface_id, false /* is_swap_ack */); On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 22:12:16 UTC) #33
danakj
https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc File content/browser/renderer_host/delegated_frame_host.cc (right): https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc#newcode513 content/browser/renderer_host/delegated_frame_host.cc:513: SendReclaimCompositorResources(output_surface_id, false /* is_swap_ack */); On 2016/07/13 22:12:16, Fady ...
4 years, 5 months ago (2016-07-13 22:15:03 UTC) #35
piman
lgtm
4 years, 5 months ago (2016-07-13 22:15:32 UTC) #36
boliu
my part lgtm
4 years, 5 months ago (2016-07-13 22:16:57 UTC) #37
Fady Samuel
On 2016/07/13 22:15:03, danakj wrote: > https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc > File content/browser/renderer_host/delegated_frame_host.cc (right): > > https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc#newcode513 > ...
4 years, 5 months ago (2016-07-13 22:43:36 UTC) #40
Fady Samuel
+mbarbella@ for ipc_fuzzer
4 years, 5 months ago (2016-07-13 22:56:17 UTC) #42
Fady Samuel
On 2016/07/13 22:15:03, danakj wrote: > https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc > File content/browser/renderer_host/delegated_frame_host.cc (right): > > https://codereview.chromium.org/2147873003/diff/20001/content/browser/renderer_host/delegated_frame_host.cc#newcode513 > ...
4 years, 5 months ago (2016-07-13 23:00:20 UTC) #45
Martin Barbella
ipc_fuzzer lgtm
4 years, 5 months ago (2016-07-13 23:05:08 UTC) #46
danakj
On Wed, Jul 13, 2016 at 4:00 PM, <fsamuel@chromium.org> wrote: > On 2016/07/13 22:15:03, danakj ...
4 years, 5 months ago (2016-07-13 23:09:55 UTC) #47
Fady Samuel
On 2016/07/13 23:09:55, danakj wrote: > On Wed, Jul 13, 2016 at 4:00 PM, <mailto:fsamuel@chromium.org> ...
4 years, 5 months ago (2016-07-13 23:27:13 UTC) #48
Fady Samuel
Dana, I've added three new unit tests. Two directly cover my mistakes in a previous ...
4 years, 5 months ago (2016-07-14 02:50:10 UTC) #51
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/2147873003/70001
4 years, 5 months ago (2016-07-14 02:50:35 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/35626) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-14 02:52:33 UTC) #56
dcheng
(This is probably a substantial enough change it should have gone through ipc review again. ...
4 years, 5 months ago (2016-07-14 03:17:43 UTC) #57
Fady Samuel
On 2016/07/14 03:17:43, dcheng wrote: > (This is probably a substantial enough change it should ...
4 years, 5 months ago (2016-07-14 03:33:47 UTC) #60
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 11:31:32 UTC) #69
danakj
Thanks for the tests! LGTM https://codereview.chromium.org/2147873003/diff/70001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/2147873003/diff/70001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1633 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1633: view_->InitAsChild(NULL); nullptr https://codereview.chromium.org/2147873003/diff/70001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1643 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1643: ...
4 years, 5 months ago (2016-07-14 19:55:44 UTC) #72
Fady Samuel
Thanks for your review, Dana! I'm CQ'ing now! https://codereview.chromium.org/2147873003/diff/70001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/2147873003/diff/70001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1633 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1633: view_->InitAsChild(NULL); ...
4 years, 5 months ago (2016-07-14 23:17:04 UTC) #73
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/2147873003/130001
4 years, 5 months ago (2016-07-14 23:28:31 UTC) #76
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 23:28:35 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/36138) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-14 23:31:17 UTC) #79
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/2147873003/150001
4 years, 5 months ago (2016-07-14 23:56:24 UTC) #82
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 23:56:29 UTC) #83
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 5 months ago (2016-07-15 01:14:47 UTC) #86
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 01:14:53 UTC) #87
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 01:17:56 UTC) #89
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b62b78229e838b0140af7973e83ada9fcce28a19
Cr-Commit-Position: refs/heads/master@{#405660}

Powered by Google App Engine
This is Rietveld 408576698