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

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)

Created:
3 years, 8 months ago by Alex Z.
Modified:
3 years, 7 months ago
Reviewers:
danakj, Fady Samuel, nasko
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, xjz+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, danakj+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove SurfaceFactory And SurfaceFactoryClient Now that all usages of SurfaceFacotry are replaced with CompositorFrameSinkSuppot, we can move all functionality in SurfaceFactory to CompositorFrameSinkSupport and delete the class. BUG=707105 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2802023002 Cr-Commit-Position: refs/heads/master@{#469954} Committed: https://chromium.googlesource.com/chromium/src/+/c0f2d73db929c46c1dd9fc14e627a0f7d39469c1

Patch Set 1 #

Patch Set 2 : Nits #

Patch Set 3 : Rebase #

Total comments: 8

Patch Set 4 : Rebased. Failing tests #

Patch Set 5 : Fix CompositorFrameSinkSupportTest #

Patch Set 6 : BeginFrameSourceForTesting #

Patch Set 7 : Fix surface_aggregator_perftest #

Patch Set 8 : WIP: Merge SurfaceFactoryTest With CompositorFrameSinkSupportTest #

Patch Set 9 : Merge unit tests #

Total comments: 16

Patch Set 10 : Address Comments #

Total comments: 4

Patch Set 11 : Replace Zero-size Arrays With nullptr #

Patch Set 12 : Address a comment #

Patch Set 13 : Use range in for loop #

Total comments: 8

Patch Set 14 : Address Comments #

Total comments: 4

Patch Set 15 : Call ReceiveFromChild before QueueFrame #

Patch Set 16 : Change Ref/UnrefResources to public #

Total comments: 35

Patch Set 17 : Address Comments #

Total comments: 6

Patch Set 18 : Address nits and rebase #

Total comments: 8

Patch Set 19 : Address Comments #

Patch Set 20 : Failing SurfaceSynchronizationTests #

Patch Set 21 : Rebase SurfaceSynchronizationTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1156 lines, -2706 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -1 line 0 comments Download
M cc/surfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +35 lines, -16 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 10 chunks +135 lines, -38 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +665 lines, -1308 lines 0 comments Download
M cc/surfaces/direct_compositor_frame_sink.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M cc/surfaces/frame_sink_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -6 lines 0 comments Download
M cc/surfaces/frame_sink_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -4 lines 0 comments Download
M cc/surfaces/surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +13 lines, -10 lines 0 comments Download
M cc/surfaces/surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 13 chunks +25 lines, -18 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +15 lines, -11 lines 0 comments Download
D cc/surfaces/surface_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -115 lines 0 comments Download
D cc/surfaces/surface_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -154 lines 0 comments Download
D cc/surfaces/surface_factory_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -28 lines 0 comments Download
D cc/surfaces/surface_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -769 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +10 lines, -9 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +9 lines, -6 lines 0 comments Download
M cc/surfaces/surface_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +4 lines, -6 lines 0 comments Download
M cc/surfaces/surface_resource_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -8 lines 0 comments Download
A + cc/surfaces/surface_synchronization_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 53 chunks +150 lines, -193 lines 0 comments Download
M cc/test/compositor_frame_helpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -0 lines 0 comments Download
M cc/test/compositor_frame_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +15 lines, -0 lines 0 comments Download
A cc/test/mock_compositor_frame_sink_support_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +31 lines, -0 lines 0 comments Download
A cc/test/mock_compositor_frame_sink_support_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 112 (76 generated)
Alex Z.
This CL depends on my other CL that removes SurfaceFactory from tests. The two CLs ...
3 years, 8 months ago (2017-04-06 21:44:28 UTC) #7
Fady Samuel
not lgtm. We seem to be losing surface_factory_unittest? Maybe we can move those tests to ...
3 years, 8 months ago (2017-04-06 21:53:23 UTC) #8
Alex Z.
https://codereview.chromium.org/2802023002/diff/40001/cc/surfaces/compositor_frame_sink_support.h File cc/surfaces/compositor_frame_sink_support.h (right): https://codereview.chromium.org/2802023002/diff/40001/cc/surfaces/compositor_frame_sink_support.h#newcode58 cc/surfaces/compositor_frame_sink_support.h:58: void ReceiveFromChild(const TransferableResourceArray& resources); On 2017/04/06 21:53:23, Fady Samuel ...
3 years, 8 months ago (2017-04-13 17:15:30 UTC) #11
Alex Z.
I have rebased and moved SurfaceFactoryTest to compositor_frame_sink_support_unittest.cc. PTAL
3 years, 8 months ago (2017-04-25 21:29:21 UTC) #20
Fady Samuel
https://codereview.chromium.org/2802023002/diff/160001/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (left): https://codereview.chromium.org/2802023002/diff/160001/cc/surfaces/compositor_frame_sink_support.cc#oldcode216 cc/surfaces/compositor_frame_sink_support.cc:216: void CompositorFrameSinkSupport::ForceReclaimResources() { This should be going away now. ...
3 years, 8 months ago (2017-04-26 00:44:14 UTC) #25
Alex Z.
https://codereview.chromium.org/2802023002/diff/160001/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (left): https://codereview.chromium.org/2802023002/diff/160001/cc/surfaces/compositor_frame_sink_support.cc#oldcode216 cc/surfaces/compositor_frame_sink_support.cc:216: void CompositorFrameSinkSupport::ForceReclaimResources() { On 2017/04/26 00:44:13, Fady Samuel wrote: ...
3 years, 7 months ago (2017-04-27 22:10:01 UTC) #27
Fady Samuel
https://codereview.chromium.org/2802023002/diff/180001/cc/surfaces/surface_resource_holder.cc File cc/surfaces/surface_resource_holder.cc (right): https://codereview.chromium.org/2802023002/diff/180001/cc/surfaces/surface_resource_holder.cc#newcode13 cc/surfaces/surface_resource_holder.cc:13: SurfaceResourceHolder::~SurfaceResourceHolder() {} SurfaceResourceHolder::~SurfaceResourceHolder() = default; https://codereview.chromium.org/2802023002/diff/180001/cc/surfaces/surface_resource_holder.cc#newcode24 cc/surfaces/surface_resource_holder.cc:24: for (auto ...
3 years, 7 months ago (2017-04-28 12:30:30 UTC) #33
Alex Z.
https://codereview.chromium.org/2802023002/diff/180001/cc/surfaces/surface_resource_holder.cc File cc/surfaces/surface_resource_holder.cc (right): https://codereview.chromium.org/2802023002/diff/180001/cc/surfaces/surface_resource_holder.cc#newcode13 cc/surfaces/surface_resource_holder.cc:13: SurfaceResourceHolder::~SurfaceResourceHolder() {} On 2017/04/28 12:30:30, Fady Samuel wrote: > ...
3 years, 7 months ago (2017-04-28 12:40:33 UTC) #35
Fady Samuel
lgtm
3 years, 7 months ago (2017-04-28 14:19:56 UTC) #44
Alex Z.
piman@chromium.org: PTAL.
3 years, 7 months ago (2017-04-28 14:26:32 UTC) #46
Fady Samuel
piman@ is OOO. Please pass to danakj@?
3 years, 7 months ago (2017-04-28 14:28:55 UTC) #48
Alex Z.
danakj@: Please review changes in cc. nasko@: Please review changes in content/browser.
3 years, 7 months ago (2017-04-28 15:19:02 UTC) #50
danakj
https://codereview.chromium.org/2802023002/diff/260001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/2802023002/diff/260001/cc/BUILD.gn#newcode689 cc/BUILD.gn:689: "//testing/gmock", These are already both here? https://codereview.chromium.org/2802023002/diff/260001/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc ...
3 years, 7 months ago (2017-04-28 17:44:23 UTC) #53
nasko
content/ rubberstamp LGTM
3 years, 7 months ago (2017-04-28 18:16:06 UTC) #54
Alex Z.
https://codereview.chromium.org/2802023002/diff/260001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/2802023002/diff/260001/cc/BUILD.gn#newcode689 cc/BUILD.gn:689: "//testing/gmock", On 2017/04/28 17:44:23, danakj wrote: > These are ...
3 years, 7 months ago (2017-05-01 14:48:34 UTC) #57
danakj
https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h File cc/surfaces/compositor_frame_sink_support.h (right): https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h#newcode82 cc/surfaces/compositor_frame_sink_support.h:82: // Surface calls ReceiveFromChild from Surface::QueueFrame to receive and ...
3 years, 7 months ago (2017-05-01 22:21:39 UTC) #60
Alex Z.
https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h File cc/surfaces/compositor_frame_sink_support.h (right): https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h#newcode82 cc/surfaces/compositor_frame_sink_support.h:82: // Surface calls ReceiveFromChild from Surface::QueueFrame to receive and ...
3 years, 7 months ago (2017-05-02 14:46:17 UTC) #62
Alex Z.
https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h File cc/surfaces/compositor_frame_sink_support.h (right): https://codereview.chromium.org/2802023002/diff/280001/cc/surfaces/compositor_frame_sink_support.h#newcode93 cc/surfaces/compositor_frame_sink_support.h:93: // SurfaceAggregator calls RefResources in PrewalkTree to validate the ...
3 years, 7 months ago (2017-05-02 16:34:32 UTC) #68
danakj
https://codereview.chromium.org/2802023002/diff/320001/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (right): https://codereview.chromium.org/2802023002/diff/320001/cc/surfaces/compositor_frame_sink_support.cc#newcode141 cc/surfaces/compositor_frame_sink_support.cc:141: if (current_surface_ && create_new_surface) { if current_surface_ is not ...
3 years, 7 months ago (2017-05-03 16:08:40 UTC) #73
Alex Z.
https://codereview.chromium.org/2802023002/diff/320001/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (right): https://codereview.chromium.org/2802023002/diff/320001/cc/surfaces/compositor_frame_sink_support.cc#newcode141 cc/surfaces/compositor_frame_sink_support.cc:141: if (current_surface_ && create_new_surface) { On 2017/05/03 16:08:39, danakj ...
3 years, 7 months ago (2017-05-03 18:07:37 UTC) #75
Fady Samuel
Is there anything blocking this CL at this point?
3 years, 7 months ago (2017-05-05 15:54:06 UTC) #79
danakj
No I'm in the mid of reviewing it again. On Fri, May 5, 2017 at ...
3 years, 7 months ago (2017-05-05 15:56:38 UTC) #80
danakj
LGTM but lets move the use of the mock class outside of the mock itself ...
3 years, 7 months ago (2017-05-05 16:04:19 UTC) #81
Fady Samuel
https://codereview.chromium.org/2802023002/diff/340001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (left): https://codereview.chromium.org/2802023002/diff/340001/cc/surfaces/surface.cc#oldcode65 cc/surfaces/surface.cc:65: // regardless of whether it's pending or active. nit: ...
3 years, 7 months ago (2017-05-05 16:50:29 UTC) #82
Alex Z.
Thanks for taking the time to review this! https://codereview.chromium.org/2802023002/diff/340001/cc/surfaces/surface.cc File cc/surfaces/surface.cc (left): https://codereview.chromium.org/2802023002/diff/340001/cc/surfaces/surface.cc#oldcode65 cc/surfaces/surface.cc:65: // ...
3 years, 7 months ago (2017-05-05 18:57:49 UTC) #83
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/2802023002/360001
3 years, 7 months ago (2017-05-05 18:58:49 UTC) #86
danakj
Thanks :) https://codereview.chromium.org/2802023002/diff/360001/cc/test/mock_compositor_frame_sink_support_client.cc File cc/test/mock_compositor_frame_sink_support_client.cc (right): https://codereview.chromium.org/2802023002/diff/360001/cc/test/mock_compositor_frame_sink_support_client.cc#newcode7 cc/test/mock_compositor_frame_sink_support_client.cc:7: using testing::Invoke; not used now https://codereview.chromium.org/2802023002/diff/360001/cc/test/mock_compositor_frame_sink_support_client.h File ...
3 years, 7 months ago (2017-05-05 19:47:53 UTC) #87
Alex Z.
https://codereview.chromium.org/2802023002/diff/360001/cc/test/mock_compositor_frame_sink_support_client.cc File cc/test/mock_compositor_frame_sink_support_client.cc (right): https://codereview.chromium.org/2802023002/diff/360001/cc/test/mock_compositor_frame_sink_support_client.cc#newcode7 cc/test/mock_compositor_frame_sink_support_client.cc:7: using testing::Invoke; On 2017/05/05 19:47:52, danakj wrote: > not ...
3 years, 7 months ago (2017-05-05 19:57:29 UTC) #90
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/2802023002/380001
3 years, 7 months ago (2017-05-06 01:37:17 UTC) #96
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/429096)
3 years, 7 months ago (2017-05-06 01:47:21 UTC) #98
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/2802023002/420001
3 years, 7 months ago (2017-05-08 02:10:28 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/9071)
3 years, 7 months ago (2017-05-08 03:19:07 UTC) #103
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/2802023002/420001
3 years, 7 months ago (2017-05-08 03:19:56 UTC) #105
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/68729)
3 years, 7 months ago (2017-05-08 04:38:49 UTC) #107
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/2802023002/420001
3 years, 7 months ago (2017-05-08 09:40:00 UTC) #109
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 10:47:34 UTC) #112
Message was sent while issue was closed.
Committed patchset #21 (id:420001) as
https://chromium.googlesource.com/chromium/src/+/c0f2d73db929c46c1dd9fc14e627...

Powered by Google App Engine
This is Rietveld 408576698