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

Issue 446973002: LayerTreeHostImpl knows if it has an output surface. (Closed)

Created:
6 years, 4 months ago by dneto
Modified:
6 years, 4 months ago
Reviewers:
danakj, jamesr
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

LayerTreeHostImpl knows if it has an output surface. Surface loss is only detected via the callback. We can tolerate multiple calls to InitializeRenderer without needing the lost-surface callback in between. Remove Renderer::IsContextLost, but keep GLRenderer::IsContextLost. Remove ThreadProxy::CheckOutputSurfaceStatusOnImplThread BUG=392891 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288457

Patch Set 1 #

Total comments: 12

Patch Set 2 : Change state variable to have_valid_output_source_ #

Patch Set 3 : Don't test calling InitializeRenderer twice in a row #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -41 lines) Patch
M cc/output/delegating_renderer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/delegating_renderer.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M cc/output/gl_renderer.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/renderer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/renderer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 6 chunks +8 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +31 lines, -0 lines 2 comments Download
M cc/trees/thread_proxy.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 2 chunks +0 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
danakj
https://codereview.chromium.org/446973002/diff/1/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/446973002/diff/1/cc/output/gl_renderer.h#newcode68 cc/output/gl_renderer.h:68: virtual bool IsContextLost(); can be made private? https://codereview.chromium.org/446973002/diff/1/cc/trees/layer_tree_host_impl.cc File ...
6 years, 4 months ago (2014-08-06 18:56:44 UTC) #1
danakj
https://codereview.chromium.org/446973002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/446973002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode1731 cc/trees/layer_tree_host_impl.cc:1731: client_->DidLoseOutputSurfaceOnImplThread(); On 2014/08/06 18:56:44, danakj wrote: > This will ...
6 years, 4 months ago (2014-08-06 18:57:10 UTC) #2
dneto
I'll have a new patch to rename the state variable to have_valid_output_surface_. I wonder if ...
6 years, 4 months ago (2014-08-06 20:20:36 UTC) #3
dneto
I will investigate removing LayerTreeHostImpl::IsContextLost altogether. Like you said, the last call would be from ...
6 years, 4 months ago (2014-08-06 20:31:23 UTC) #4
danakj
On Wed, Aug 6, 2014 at 4:31 PM, <dneto@chromium.org> wrote: > I will investigate removing ...
6 years, 4 months ago (2014-08-06 20:34:28 UTC) #5
dneto
On 2014/08/06 20:34:28, danakj wrote: > On Wed, Aug 6, 2014 at 4:31 PM, <mailto:dneto@chromium.org> ...
6 years, 4 months ago (2014-08-07 17:05:58 UTC) #6
danakj
LGTM since we're going to remove that method/variable anyway, but one thing: https://codereview.chromium.org/446973002/diff/40001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc ...
6 years, 4 months ago (2014-08-08 13:48:49 UTC) #7
dneto
https://codereview.chromium.org/446973002/diff/40001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/446973002/diff/40001/cc/trees/layer_tree_host_impl_unittest.cc#newcode6834 cc/trees/layer_tree_host_impl_unittest.cc:6834: // twice in a row only causes one subsequent ...
6 years, 4 months ago (2014-08-08 14:09:12 UTC) #8
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 4 months ago (2014-08-08 18:15:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dneto@chromium.org/446973002/40001
6 years, 4 months ago (2014-08-08 18:19:11 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 22:53:15 UTC) #11
Message was sent while issue was closed.
Change committed as 288457

Powered by Google App Engine
This is Rietveld 408576698