|
cc: Block commit on activate by setting a flag on LayerTreeHost.
Currently the ThreadProxy recursively asks all layers in the tree if
they should block the commit. This is problematic as when you remove
a layer from a the tree, it may want to block the commit to get back
resources from its active-tree impl-layer.
Instead, have layers call SetNextCommitWaitsForActivation() when they
want the next commit to block on activate. This way we only block
commits that matter, not every commit when there's a texture layer
present. And we can allow a layer to block the commit when it is
leaving the tree.
Tests:
TextureLayerNoMailboxIsActivatedDuringCommit
TextureLayerMailboxIsActivatedDuringCommit
DelegatedFrameIsActivatedDuringCommit
R=enne, piman
BUG= 277953
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220418
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220515
Total comments: 3
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+442 lines, -65 lines) |
Patch |
 |
M |
cc/layers/delegated_renderer_layer.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_renderer_layer.cc
|
View
|
|
3 chunks |
+20 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer.h
|
View
|
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer.cc
|
View
|
|
4 chunks |
+13 lines, -24 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.h
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+241 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_proxy.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_delegated.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+105 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/thread_proxy.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/thread_proxy.cc
|
View
|
1
2
3
4
|
5 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|