|
Split SurfaceFactoryClient Into Four Interfaces
SurfaceFactoryClient has four methods and each one of them is being used by
a different class: ReferencedSurfacesChanged is used by SurfaceFactory;
ReturnResources is used by SurfaceResourceHolder; WillDrawSurface is called by
SurfaceFactory but SurfaceFactory is simply forwarding the call from
SurfaceAggregator; SetBeginFrameSource is used by FrameSinkManager.
Giving the four classes their own client types allows the implementation class
to be more flexible. The implementation class would no longer have to implement
all four methods when only some of them are needed.
SurfaceAggregator::PreWalkTree() no longer goes through SurfaceFactory
when calling WillDrawSurface.
BUG= 707105
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2824053003
Cr-Commit-Position: refs/heads/master@{#466473}
Committed: https://chromium.googlesource.com/chromium/src/+/dcf699d9ec671447372b367a375a622271396db5
Total comments: 2
Total comments: 7
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+288 lines, -155 lines) |
Patch |
 |
M |
cc/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/compositor_frame_sink_support.h
|
View
|
1
2
3
4
|
4 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/compositor_frame_sink_support.cc
|
View
|
1
2
3
4
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/framesink_manager.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/framesink_manager.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
A |
cc/surfaces/framesink_manager_client.h
|
View
|
1
2
3
4
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_perftest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory_client.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory_unittest.cc
|
View
|
1
2
3
4
5
|
20 chunks |
+61 lines, -63 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_manager.h
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_manager.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_manager_unittest.cc
|
View
|
1
2
3
4
|
7 chunks |
+27 lines, -26 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_resource_holder.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_resource_holder.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
A |
cc/surfaces/surface_resource_holder_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/test/fake_surface_resource_holder_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/test/fake_surface_resource_holder_client.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/test/stub_surface_factory_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
Total messages: 44 (28 generated)
|