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

Issue 1123623003: Automatically redraw the display on resume. (Closed)

Created:
5 years, 7 months ago by blundell
Modified:
5 years, 7 months ago
Reviewers:
jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org, etiennej
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Automatically redraw the display on resume. - OnscreenContextProvider notifies the CommandBufferImpl when the context has been lost. - This in turn causes DisplayImpl::OutputSurfaceLost() to be called, which results in it calling back to OnscreenContextProvider to ask it to create a new context when suitable. This patch is heavily based off https://codereview.chromium.org/1116883002/ by etiennej@chromium.org. R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/a3b4ddbca7f09447fc281e21f1503c90c8c8be14

Patch Set 1 #

Total comments: 2

Patch Set 2 : Schedule draw on coming back from context loss #

Patch Set 3 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -8 lines) Patch
M services/gles2/command_buffer_impl.h View 3 chunks +8 lines, -0 lines 0 comments Download
M services/gles2/command_buffer_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M services/native_viewport/onscreen_context_provider.h View 3 chunks +7 lines, -1 line 0 comments Download
M services/native_viewport/onscreen_context_provider.cc View 3 chunks +27 lines, -7 lines 0 comments Download
M services/surfaces/surfaces_scheduler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
blundell
https://codereview.chromium.org/1123623003/diff/1/services/surfaces/display_impl.cc File services/surfaces/display_impl.cc (right): https://codereview.chromium.org/1123623003/diff/1/services/surfaces/display_impl.cc#newcode81 services/surfaces/display_impl.cc:81: cc_id_, pending_frame_.Clone().To<scoped_ptr<cc::CompositorFrame>>(), I'm not an expert here, but this ...
5 years, 7 months ago (2015-05-04 15:11:49 UTC) #2
blundell
It looks like there might be some problems with the apptests on Android that I'll ...
5 years, 7 months ago (2015-05-04 15:22:04 UTC) #3
blundell
On 2015/05/04 15:22:04, blundell wrote: > It looks like there might be some problems with ...
5 years, 7 months ago (2015-05-04 15:23:26 UTC) #4
jamesr
I still feel like there's a piece missing in the flow to trigger a new ...
5 years, 7 months ago (2015-05-04 18:03:22 UTC) #5
blundell
Hey James, Thanks for the suggestion! Is this along the lines of what you were ...
5 years, 7 months ago (2015-05-05 13:12:47 UTC) #7
blundell
On 2015/05/05 13:12:47, blundell wrote: > Hey James, > > Thanks for the suggestion! Is ...
5 years, 7 months ago (2015-05-05 13:13:23 UTC) #8
jamesr
Hmm, the scheduler should know that the context is recreated. Does it not? In the ...
5 years, 7 months ago (2015-05-05 23:23:44 UTC) #9
blundell
The surfaces_scheduler doesn't get any ping about the context being recreated as far as I ...
5 years, 7 months ago (2015-05-06 14:04:39 UTC) #10
jamesr
lgtm
5 years, 7 months ago (2015-05-06 15:04:18 UTC) #11
blundell
5 years, 7 months ago (2015-05-11 15:26:40 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
a3b4ddbca7f09447fc281e21f1503c90c8c8be14 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698