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

Issue 478703002: Remove cc::LayerTreeHostImpl::IsContextLost (Closed)

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

Description

Remove cc::LayerTreeHostImpl::IsContextLost LTHI::PrepareToDraw returns DRAW_ABORTED_CONTEXT_LOST when the layer tree host knows that the context has been lost. In the single threaded case, the layer tree host is notified of surface loss after DoCommit completes, not in the middle. BUG=402511

Patch Set 1 #

Patch Set 2 : Include all changes. Prev patchset was second stage only #

Total comments: 13

Patch Set 3 : DoComposite draws even if context is lost #

Patch Set 4 : DoComposite draws even if context lost (fixed comments) #

Total comments: 18

Patch Set 5 : Fix style: bracing, no (void) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -74 lines) Patch
M cc/trees/layer_tree_host_impl.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 4 chunks +0 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +1 line, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 7 chunks +48 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 2 chunks +37 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 4 3 chunks +27 lines, -5 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 chunks +17 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dneto
https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3296 cc/trees/layer_tree_host_impl.cc:3296: } This fixes a readability issue reported when I ...
6 years, 4 months ago (2014-08-15 17:44:32 UTC) #1
danakj
https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode1105 cc/trees/layer_tree_host_impl.cc:1105: if (!have_valid_output_surface_) For this to happen, we'd have to ...
6 years, 4 months ago (2014-08-15 17:45:16 UTC) #2
dneto
I will try your suggestions https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode1105 cc/trees/layer_tree_host_impl.cc:1105: if (!have_valid_output_surface_) On 2014/08/15 ...
6 years, 4 months ago (2014-08-15 17:58:20 UTC) #3
danakj
https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode1105 cc/trees/layer_tree_host_impl.cc:1105: if (!have_valid_output_surface_) On 2014/08/15 17:58:20, dneto wrote: > On ...
6 years, 4 months ago (2014-08-15 18:00:12 UTC) #4
dneto
https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc#newcode317 cc/trees/single_thread_proxy.cc:317: SetNeedsCommitOnImplThread(); On 2014/08/15 17:45:15, danakj wrote: > Should this ...
6 years, 4 months ago (2014-08-15 18:17:17 UTC) #5
danakj
https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc#newcode317 cc/trees/single_thread_proxy.cc:317: SetNeedsCommitOnImplThread(); On 2014/08/15 18:17:17, dneto wrote: > On 2014/08/15 ...
6 years, 4 months ago (2014-08-15 18:18:10 UTC) #6
dneto
On 2014/08/15 18:18:10, danakj wrote: > https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc > File cc/trees/single_thread_proxy.cc (right): > > https://codereview.chromium.org/478703002/diff/20001/cc/trees/single_thread_proxy.cc#newcode317 > ...
6 years, 4 months ago (2014-08-15 18:54:41 UTC) #7
danakj
Awesome I was hoping for that :) On Fri, Aug 15, 2014 at 2:54 PM, ...
6 years, 4 months ago (2014-08-15 18:55:28 UTC) #8
dneto
Now STP::DoComposite will draw even if the context is lost. https://codereview.chromium.org/478703002/diff/60001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/478703002/diff/60001/cc/trees/single_thread_proxy.cc#newcode426 ...
6 years, 4 months ago (2014-08-20 18:01:24 UTC) #9
danakj
Awesome! https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc#newcode68 cc/trees/layer_tree_host_unittest_context.cc:68: if (!context3d_) Is this still needed? https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc#newcode669 cc/trees/layer_tree_host_unittest_context.cc:669: ...
6 years, 4 months ago (2014-08-20 18:22:10 UTC) #10
danakj
+enne FYI probably a bunch of these test changes will revert with the scheduler client ...
6 years, 4 months ago (2014-08-20 18:23:04 UTC) #11
enne (OOO)
It looks like this is nearly ready to land. I can just rebase. I am ...
6 years, 4 months ago (2014-08-20 18:27:13 UTC) #12
dneto
I'll have a new patch shortly. https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc#newcode68 cc/trees/layer_tree_host_unittest_context.cc:68: if (!context3d_) On ...
6 years, 4 months ago (2014-08-20 19:15:21 UTC) #13
danakj
LGTM https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/478703002/diff/60001/cc/trees/layer_tree_host_unittest_context.cc#newcode1116 cc/trees/layer_tree_host_unittest_context.cc:1116: case 7: On 2014/08/20 19:15:20, dneto wrote: > ...
6 years, 4 months ago (2014-08-20 19:19:13 UTC) #14
dneto
On 2014/08/20 19:19:13, danakj wrote: > LGTM I'm investigating the failure on the Linux GPU ...
6 years, 4 months ago (2014-08-21 21:59:20 UTC) #15
enne (OOO)
The CQ bit was checked by enne@chromium.org
6 years, 4 months ago (2014-08-22 17:02:36 UTC) #16
enne (OOO)
Oops. *blush*
6 years, 4 months ago (2014-08-22 17:03:17 UTC) #17
dneto
On 2014/08/22 17:03:17, enne wrote: > Oops. *blush* After picking up enne's https://codereview.chromium.org/134623005, I started ...
6 years, 4 months ago (2014-08-25 15:40:34 UTC) #18
danakj
6 years, 4 months ago (2014-08-25 15:42:14 UTC) #19
Message was sent while issue was closed.
Ok I've marked this one closd

Powered by Google App Engine
This is Rietveld 408576698