|
|
Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (patchset #6 id:120001 of https://codereview.chromium.org/2193293004/ )
Reason for revert:
Bisect identified that this patch broke cc_perftests on Linux and Android perf bots (crbug.com/634013).
Original issue's description:
> cc: Make LayerTreeTests use a DelegatingRenderer and Display.
>
> Wherein we rewrite a few thousand cc unit_tests to not use a
> DirectRenderer in LayerTreeHostImpl so that we can remove that
> possibility from the codebase.
>
> Currently some LayerTreeTests use a DirectRenderer in the
> LayerTreeHostImpl, which is the last case of this occuring. Instead
> give all LayerTreeTests a TestDelegatingOutputSurface (which means
> a DelegatingRenderer in LayerTreeHostImpl). TestDelegatingOutputSurface
> delegates drawing to a DirectRenderer via Display, which matches how
> things "really work" now.
>
> This means SwapBuffers hooks become async from operations on
> LayerTreeHostImpl, so we introduce 3 new hooks for tests:
> - DisplayReceivedCompositorFrameOnThread.
> - DisplayWillDrawAndSwapOnThread.
> - DisplayDidDrawAndSwapOnThread.
> None of these receive a LayerTreeHostImpl* since they are async
> from it and so using its state from the hook would be racey. These
> hooks come from the TestDelegatingOutputSurface instead of from the
> LayerTreeHostImpl.
>
> LayerTreeTest gets two methods that can be overridden to control the
> output surface:
> - CreateDelegatingOutputSurface makes a TestDelegatingOutputSurface
> so tests can control the arguments passed to its constructor, or the
> ContextProviders given to it.
> - CreateDisplayOutputSurface makes an OutputSurface subclass that
> will be owned by the Display and used by the DirectRenderer. This
> allows tests to control which ContextProvider it uses, and what
> subclass of OutputSurface to use, to allow mocking out things as
> desired.
>
> R=enne
> BUG= 606056
> CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
>
> Committed: https://crrev.com/cae1058e62b7960796709512c4e1e650b6389c0f
> Cr-Commit-Position: refs/heads/master@{#409270}
TBR=enne@chromium.org,boliu@chromium.org,fsamuel@chromium.org,piman@chromium.org,danakj@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG= 606056
Committed: https://crrev.com/8ee20259fc28430498df2b22cb4a506d215d26dd
Cr-Commit-Position: refs/heads/master@{#409757}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+589 lines, -724 lines) |
Patch |
 |
M |
android_webview/browser/surfaces_instance.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc_tests.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/surface_layer_unittest.cc
|
View
|
|
3 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
|
5 chunks |
+24 lines, -30 lines |
0 comments
|
Download
|
 |
M |
cc/output/delegating_renderer_unittest.cc
|
View
|
|
3 chunks |
+49 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cc/output/renderer_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.cc
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display_client.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.cc
|
View
|
|
2 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
 |
A |
cc/test/failure_output_surface.h
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/test/failure_output_surface.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_output_surface.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.h
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.cc
|
View
|
|
2 chunks |
+27 lines, -36 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.h
|
View
|
|
7 chunks |
+19 lines, -34 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.cc
|
View
|
|
10 chunks |
+63 lines, -72 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_context_provider.h
|
View
|
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_context_provider.cc
|
View
|
|
4 chunks |
+9 lines, -27 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_delegating_output_surface.h
|
View
|
|
4 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_delegating_output_surface.cc
|
View
|
|
7 chunks |
+6 lines, -26 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_hooks.h
|
View
|
|
3 chunks |
+7 lines, -17 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_web_graphics_context_3d.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
|
20 chunks |
+136 lines, -156 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_context.cc
|
View
|
|
11 chunks |
+49 lines, -54 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_copyrequest.cc
|
View
|
|
10 chunks |
+106 lines, -133 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_damage.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/android/synchronous_compositor_output_surface.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor_unittest.cc
|
View
|
|
2 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/test/layouttest_support.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/display_compositor.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/display_compositor.cc
|
View
|
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
Total messages: 6 (2 generated)
|