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

Issue 2270573002: cc: Get rid of LayerTreeHost::output_surface_lost_ state. (Closed)

Created:
4 years, 4 months ago by danakj
Modified:
4 years, 3 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, Ken Russell (switch to Gerrit), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@renderer-caps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Get rid of LayerTreeHost::output_surface_lost_ state. This was mostly tracked because while lost the main thread Renderer capabilities would not be valid. However a few things have changed now: 1) No more renderer capabilities. So 2) We don't care if we main frame without an output surface. 3) We don't defer commits on the main thread so we wouldn't try to start a frame on the main thread while the output surface is lost anyways. The only exception is SingleThreadProxy needs to know to request and output surface when doing synchronous composite things. So it does that itself now. R=enne BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/be9c59ee04d8297a3a8bc5c0ef8ecb843d3914be Cr-Commit-Position: refs/heads/master@{#414750}

Patch Set 1 : lth-outputsurface-lost #

Patch Set 2 : lth-outputsurface-lost: . #

Total comments: 1

Patch Set 3 : lth-outputsurface-lost: rebase #

Patch Set 4 : lth-outputsurface-lost: ui #

Patch Set 5 : lth-outputsurface-lost: blimp #

Patch Set 6 : lth-outputsurface-lost: delete-the-valid #

Patch Set 7 : lth-outputsurface-lost: and-kill-the-test-for-dead-code #

Patch Set 8 : lth-outputsurface-lost: deps #

Total comments: 2

Patch Set 9 : lth-outputsurface-lost: rebaseblimp-fixtestsandrelease #

Patch Set 10 : lth-outputsurface-lost: surfacecontextfactory #

Patch Set 11 : lth-outputsurface-lost: android-build #

Patch Set 12 : lth-outputsurface-lost: android-build-and-earlyout-sooner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -262 lines) Patch
M blimp/client/app/compositor/browser_compositor.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M cc/debug/micro_benchmark_controller_unittest.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 4 chunks +0 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 8 chunks +0 lines, -28 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -50 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 3 chunks +13 lines, -3 lines 0 comments Download
M cc/trees/proxy_main.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 10 chunks +6 lines, -18 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M ui/aura/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/demo/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 5 chunks +15 lines, -50 lines 0 comments Download
M ui/compositor/compositor_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -65 lines 0 comments Download
M ui/views/examples/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/examples/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/examples/examples_main.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/surface_context_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 73 (48 generated)
danakj
4 years, 4 months ago (2016-08-23 01:00:51 UTC) #2
Justin Novosad
On 2016/08/23 01:00:51, danakj wrote: non-Owner lgtm
4 years, 4 months ago (2016-08-23 14:54:54 UTC) #4
enne (OOO)
lgtm https://codereview.chromium.org/2270573002/diff/20001/cc/trees/proxy_main.cc File cc/trees/proxy_main.cc (left): https://codereview.chromium.org/2270573002/diff/20001/cc/trees/proxy_main.cc#oldcode162 cc/trees/proxy_main.cc:162: if (layer_tree_host_->output_surface_lost()) { Ohmygosh so glad to get ...
4 years, 4 months ago (2016-08-23 17:26:00 UTC) #6
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/2270573002/40001
4 years, 3 months ago (2016-08-25 00:33:26 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_precise_blink_rel/builds/1358) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-08-25 00:47:26 UTC) #11
danakj
Oh, so ui::Compositor was using the lost bit on LTH to skip calling ReleaseOutputSurface. This ...
4 years, 3 months ago (2016-08-25 00:53:10 UTC) #14
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/2270573002/60001
4 years, 3 months ago (2016-08-25 00:58:05 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/146440)
4 years, 3 months ago (2016-08-25 01:12:01 UTC) #21
danakj
+nyquist for blimp
4 years, 3 months ago (2016-08-25 01:14:46 UTC) #23
danakj
+sadrul for ui/aura/ and ui/views/ OWNERS (aura_demo crashes anyways for some other reason, but you ...
4 years, 3 months ago (2016-08-25 02:01:36 UTC) #31
Fady Samuel
https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc#newcode253 ui/compositor/compositor.cc:253: context_factory_->GetSurfaceManager()->RegisterSurfaceNamespaceHierarchy( This all kind of goes in the opposite ...
4 years, 3 months ago (2016-08-25 02:43:06 UTC) #40
Fady Samuel
https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc#newcode253 ui/compositor/compositor.cc:253: context_factory_->GetSurfaceManager()->RegisterSurfaceNamespaceHierarchy( This all kind of goes in the opposite ...
4 years, 3 months ago (2016-08-25 02:43:06 UTC) #41
piman
https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc#newcode253 ui/compositor/compositor.cc:253: context_factory_->GetSurfaceManager()->RegisterSurfaceNamespaceHierarchy( On 2016/08/25 02:43:06, Fady Samuel wrote: > This ...
4 years, 3 months ago (2016-08-25 03:33:45 UTC) #43
sadrul
aura views lgtm
4 years, 3 months ago (2016-08-25 03:40:58 UTC) #44
Fady Samuel
On 2016/08/25 03:33:45, piman OOO back 2016-08-29 wrote: > https://codereview.chromium.org/2270573002/diff/140001/ui/compositor/compositor.cc > File ui/compositor/compositor.cc (right): > ...
4 years, 3 months ago (2016-08-25 14:05:54 UTC) #45
Fady Samuel
On 2016/08/25 14:05:54, Fady Samuel wrote: > On 2016/08/25 03:33:45, piman OOO back 2016-08-29 wrote: ...
4 years, 3 months ago (2016-08-25 22:50:47 UTC) #46
enne (OOO)
On 2016/08/25 at 14:05:54, fsamuel wrote: > Some background: My current mental model (and you ...
4 years, 3 months ago (2016-08-25 23:11:17 UTC) #47
danakj
This patch has 2 problems: 1) SingleThreadProxy was not setting output_surface_lost_ in ReleaseOutputSurface() which means ...
4 years, 3 months ago (2016-08-25 23:53:21 UTC) #50
danakj
On 2016/08/25 23:53:21, danakj wrote: > This patch has 2 problems: > > 1) SingleThreadProxy ...
4 years, 3 months ago (2016-08-25 23:53:49 UTC) #51
danakj
Fady, I had to add a SurfaceManager to ui/views/mus/surface_context_factory for the mash_unittests were crashing on ...
4 years, 3 months ago (2016-08-26 01:25:07 UTC) #55
nyquist
blimp lgtm
4 years, 3 months ago (2016-08-26 01:41:27 UTC) #57
danakj
Enne, annnd one more change. Yet another if (!lth->output_surface_lost()) guard to ReleaseOutputSurface() on android made ...
4 years, 3 months ago (2016-08-26 03:04:50 UTC) #64
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/2270573002/220001
4 years, 3 months ago (2016-08-26 18:14:26 UTC) #69
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 3 months ago (2016-08-26 18:25:13 UTC) #71
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 18:28:08 UTC) #73
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/be9c59ee04d8297a3a8bc5c0ef8ecb843d3914be
Cr-Commit-Position: refs/heads/master@{#414750}

Powered by Google App Engine
This is Rietveld 408576698