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

Issue 12220095: cc: Fix resource provider fences and add DCHECKs. (Closed)

Created:
7 years, 10 months ago by epenner
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

cc: Fix resource provider fences and add DCHECKs. When I added the resource provider fence concept, I didn't extend the read-fence long enough (it currently only protects the current frame). This extends the read-lock for one frame. BUG=172995 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182162

Patch Set 1 #

Patch Set 2 : Remove validation. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix bot #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M cc/gl_renderer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/gl_renderer.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 19 (0 generated)
epenner
Ptal. What's confusing to me is why the original method fixed the tearing. Are we ...
7 years, 10 months ago (2013-02-11 19:18:42 UTC) #1
nduca
I wonder, should we split out the bugfix from the debug stuff? The debug stuff ...
7 years, 10 months ago (2013-02-12 05:41:45 UTC) #2
epenner
On 2013/02/12 05:41:45, nduca wrote: > I wonder, should we split out the bugfix from ...
7 years, 10 months ago (2013-02-12 06:24:01 UTC) #3
nduca
I didn't have any good ideas, it was sort of that I maybe getting distrcted ...
7 years, 10 months ago (2013-02-12 06:44:45 UTC) #4
epenner
On 2013/02/12 06:44:45, nduca wrote: > I didn't have any good ideas, it was sort ...
7 years, 10 months ago (2013-02-12 18:43:46 UTC) #5
nduca
Yeah, much easier to see the change. Very Lgtm.
7 years, 10 months ago (2013-02-12 19:00:32 UTC) #6
epenner
That's better, PTAL. Maybe we can have some DCHECKS based on our memory limit. Also, ...
7 years, 10 months ago (2013-02-12 19:03:40 UTC) #7
epenner
rather -> "if we upload *all* our textures in one frame, I doubt a glFinish ...
7 years, 10 months ago (2013-02-12 19:05:01 UTC) #8
nduca
still lgtm :)
7 years, 10 months ago (2013-02-12 19:23:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12220095/6001
7 years, 10 months ago (2013-02-12 19:25:19 UTC) #10
commit-bot: I haz the power
Presubmit check for 12220095-6001 failed and returned exit status 1. INFO:root:Found 3 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-12 19:25:25 UTC) #11
apatrick_chromium
content/renderer/gpu/ LGTM
7 years, 10 months ago (2013-02-12 19:30:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12220095/6001
7 years, 10 months ago (2013-02-12 23:07:53 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 00:01:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12220095/10003
7 years, 10 months ago (2013-02-13 02:33:32 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 03:42:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12220095/5005
7 years, 10 months ago (2013-02-13 04:22:43 UTC) #17
commit-bot: I haz the power
Change committed as 182162
7 years, 10 months ago (2013-02-13 08:21:33 UTC) #18
joth
7 years, 8 months ago (2013-04-05 05:30:32 UTC) #19
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12220095/diff/5005/content/renderer/gp...
File content/renderer/gpu/compositor_output_surface.cc (right):

https://chromiumcodereview.appspot.com/12220095/diff/5005/content/renderer/gp...
content/renderer/gpu/compositor_output_surface.cc:155: base::PlatformThreadId
g_last_thread = base::PlatformThread::CurrentId();
removing the static here makes the dcheck below pointless? (And, g_ prefix does
not make sense as it's a plain local var)

can probably write this as:
  static NonThreadSafe g_nts;
  DCHECK(g_nts.CalledOnValidThread());
(no need for ifdef)

Powered by Google App Engine
This is Rietveld 408576698