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

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed)

Created:
4 years, 4 months ago by petrcermak
Modified:
4 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, piman, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

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

Messages

Total messages: 6 (2 generated)
petrcermak
Created Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display.
4 years, 4 months ago (2016-08-04 09:33:15 UTC) #2
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/2208693003/1
4 years, 4 months ago (2016-08-04 09:33:33 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-04 10:36:38 UTC) #4
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 10:37:56 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8ee20259fc28430498df2b22cb4a506d215d26dd
Cr-Commit-Position: refs/heads/master@{#409757}

Powered by Google App Engine
This is Rietveld 408576698