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

Issue 287193003: cc: Stop blocking the main thread in CreateAndInitializeOutputSurface. (Closed)

Created:
6 years, 7 months ago by danakj
Modified:
6 years, 6 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, boliu, brianderson, vmpstr
Visibility:
Public.

Description

cc: Stop blocking the main thread in CreateAndInitializeOutputSurface. The ThreadProxy does not need to block the main thread anymore, instead have it post back DidInitializeOutputSurface() with the result of the process. We would delete all contents textures on the compositor thread during OutputSurface creation, which doesn't really make sense, cuz the ResourceProvider won't be the same one anymore, and this required blocking the thread. We also notified the main thread that the OutputSurface was lost when creating the new output surface. Instead, post a DidLoseOutputSurface() to the main thread to inform the LayerTreeHost right away, and have that block and clean up the contents textures immediately (to be removed when we always do impl-side painting). R=enne BUG=374287 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272276 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276921

Patch Set 1 #

Patch Set 2 : threadproxy-nonblock-create: . #

Patch Set 3 : threadproxy-nonblock-create: . #

Total comments: 4

Patch Set 4 : threadproxy-nonblock-create: . #

Patch Set 5 : threadproxy-nonblock-create: rebase #

Patch Set 6 : threadproxy-nonblock-create: defer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -96 lines) Patch
M cc/scheduler/scheduler.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 7 chunks +91 lines, -86 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
danakj
Depends on https://codereview.chromium.org/286293002/
6 years, 7 months ago (2014-05-16 20:09:16 UTC) #1
enne (OOO)
https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc#newcode248 cc/trees/thread_proxy.cc:248: base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface, How is this not an infinite loop during ...
6 years, 7 months ago (2014-05-16 22:37:29 UTC) #2
danakj
https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc#newcode248 cc/trees/thread_proxy.cc:248: base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface, On 2014/05/16 22:37:29, enne wrote: > How is ...
6 years, 7 months ago (2014-05-16 22:45:29 UTC) #3
enne (OOO)
https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc#newcode248 cc/trees/thread_proxy.cc:248: base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface, On 2014/05/16 22:45:29, danakj wrote: > On 2014/05/16 ...
6 years, 7 months ago (2014-05-16 22:46:31 UTC) #4
danakj
https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/287193003/diff/60001/cc/trees/thread_proxy.cc#newcode248 cc/trees/thread_proxy.cc:248: base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface, On 2014/05/16 22:46:31, enne wrote: > On 2014/05/16 ...
6 years, 7 months ago (2014-05-16 22:48:40 UTC) #5
enne (OOO)
Ok. I think I've wrapped my head around this. lgtm
6 years, 7 months ago (2014-05-19 21:42:54 UTC) #6
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-20 21:56:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/60001
6 years, 7 months ago (2014-05-20 21:57:48 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 07:27:12 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-21 09:31:14 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/30988)
6 years, 7 months ago (2014-05-21 09:31:15 UTC) #11
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-21 14:22:04 UTC) #12
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 7 months ago (2014-05-21 18:21:19 UTC) #13
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-21 18:21:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/60001
6 years, 7 months ago (2014-05-21 19:57:10 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 06:14:05 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 06:28:28 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/31429)
6 years, 7 months ago (2014-05-22 06:28:28 UTC) #18
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-22 15:22:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/60001
6 years, 7 months ago (2014-05-22 15:23:45 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 15:31:10 UTC) #21
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 7 months ago (2014-05-22 15:38:15 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 15:39:48 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/31576)
6 years, 7 months ago (2014-05-22 15:39:48 UTC) #24
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 7 months ago (2014-05-22 15:51:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/80001
6 years, 7 months ago (2014-05-22 15:54:03 UTC) #26
commit-bot: I haz the power
Change committed as 272276
6 years, 7 months ago (2014-05-22 19:33:18 UTC) #27
danakj
A revert of this CL has been created in https://codereview.chromium.org/299233002/ by danakj@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-23 19:45:17 UTC) #28
danakj
I've fixed this CL to not blow up and try to do a BeginMainFrame when ...
6 years, 6 months ago (2014-06-10 21:57:08 UTC) #29
danakj
Green trybots, going to try another run too. But please take a look at the ...
6 years, 6 months ago (2014-06-11 17:05:28 UTC) #30
enne (OOO)
On 2014/06/11 at 17:05:28, danakj wrote: > Green trybots, going to try another run too. ...
6 years, 6 months ago (2014-06-11 17:19:58 UTC) #31
danakj
I ran the DownloadExtensionTest.DownloadExtensionTest_Download_ConflictAction a bunch of times on mac and it didnt fail there ...
6 years, 6 months ago (2014-06-11 18:06:43 UTC) #32
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 6 months ago (2014-06-11 18:06:49 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/120001
6 years, 6 months ago (2014-06-11 18:09:59 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:03:33 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:31:07 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19597)
6 years, 6 months ago (2014-06-11 21:31:08 UTC) #37
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 6 months ago (2014-06-11 21:46:06 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/120001
6 years, 6 months ago (2014-06-11 21:48:32 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:54:00 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:27:11 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19711)
6 years, 6 months ago (2014-06-11 22:27:12 UTC) #42
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 6 months ago (2014-06-11 22:28:14 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/120001
6 years, 6 months ago (2014-06-11 22:29:22 UTC) #44
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:34:00 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:49:18 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19777)
6 years, 6 months ago (2014-06-11 22:49:19 UTC) #47
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 6 months ago (2014-06-12 16:04:19 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/287193003/120001
6 years, 6 months ago (2014-06-12 16:06:20 UTC) #49
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 17:58:16 UTC) #50
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 04:15:26 UTC) #51
Message was sent while issue was closed.
Change committed as 276921

Powered by Google App Engine
This is Rietveld 408576698