|
Remove CompositorFrameSink::ForceReclaimResources().
This is CL is based off of http://crrev.com/2609253003. The CL was
rebased and ui/compositor/layer_unittest.cc modified to pass. Some
pieces of the original CL had already been landed in separate CLs.
Calling ForceReclaimResources() in LayerTreeHostImpl::BeginCommit()
returns all texture resources and avoid some double buffering overhead.
This optimization won't work across any thread/process boundaries, so
it's only used for the main browser UI compositor and not renderer
compositors.
We are planning on moving the display compositor to a separate process
and this browser UI compositor optimization will no longer be possible
with the mus graphics architecture. This CL removes
CompositorFrameSink::ForceReclaimResources() and associated code.
This will cause a memory regression for Win/Linux/Mac/CrOS. However,
only browser UI tiles that are actively being rastered will be double
buffered, so the regression should be small.
BUG= 489515
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2822143003
Cr-Commit-Position: refs/heads/master@{#467456}
Committed: https://chromium.googlesource.com/chromium/src/+/cf88963a80844b8ed00484ec191e5a952e2b9b07
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+56 lines, -164 lines) |
Patch |
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
cc/output/compositor_frame_sink.h
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/compositor_frame_sink_support.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/compositor_frame_sink_support.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink.cc
|
View
|
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.cc
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.cc
|
View
|
1
2
|
3 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -28 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_pixeltest_tiles.cc
|
View
|
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+8 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/test/layouttest_support.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/layer_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -8 lines |
0 comments
|
Download
|
Total messages: 48 (33 generated)
|