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

Issue 1311093002: cc: Acquire worker context lock be calling BindToCurrentThread. (Closed)

Created:
5 years, 3 months ago by reveman
Modified:
5 years, 3 months ago
Reviewers:
danakj, ericrk
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Acquire worker context lock be calling BindToCurrentThread. BUG=523411 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M cc/output/output_surface.cc View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311093002/1
5 years, 3 months ago (2015-08-24 10:29:31 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-24 11:24:41 UTC) #4
reveman
5 years, 3 months ago (2015-08-24 15:23:25 UTC) #6
danakj
LGTM but is this testable?
5 years, 3 months ago (2015-08-24 20:47:38 UTC) #7
ericrk
https://codereview.chromium.org/1311093002/diff/1/cc/output/output_surface.cc File cc/output/output_surface.cc (right): https://codereview.chromium.org/1311093002/diff/1/cc/output/output_surface.cc#newcode132 cc/output/output_surface.cc:132: ContextProvider::ScopedContextLock scoped_context( I think this may just be a ...
5 years, 3 months ago (2015-08-24 21:00:10 UTC) #9
reveman
5 years, 3 months ago (2015-08-25 22:59:59 UTC) #10
https://codereview.chromium.org/1311093002/diff/1/cc/output/output_surface.cc
File cc/output/output_surface.cc (right):

https://codereview.chromium.org/1311093002/diff/1/cc/output/output_surface.cc...
cc/output/output_surface.cc:132: ContextProvider::ScopedContextLock
scoped_context(
On 2015/08/24 at 21:00:10, ericrk wrote:
> I think this may just be a naming issue and actually safe, but it seems weird
that we take the lock here before calling "SetupLock" - is SetupLock a misnomer?
comment says it "Sets up a lock so this context can be used from multiple
threads.", but it seems that it just passes the existing lock on to the command
buffer, rather than "setting up" anything.
> 
> Out of curiosity, were we hitting an issue that this fixes? if so, does that
mean there were other uses of the lock before we call "setuplock"?

Yes, the name of this function is a bit confusing. As I mentioned on the bug, we
might want to move this code out of cc::OutputSurface. Here's a patch that does
that instead:

https://codereview.chromium.org/1317743002

I think that's preferred unless there turns out to be some issues with that
approach.

Powered by Google App Engine
This is Rietveld 408576698