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

Issue 13730005: Delay signaling Shader cache is available until loading is complete. (Closed)

Created:
7 years, 8 months ago by dsinclair
Modified:
7 years, 8 months ago
Reviewers:
apatrick_chromium
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Delay signaling Shader cache is available until loading is complete. If we send the available callback before we've finished loading the current cached shaders off disk there is a potential race condition where we do a cache clear while reading. This causes an issue with the iterators and the cache does not get cleared. This patch delays the signaling of the available cache until after we have finished iterating over the cache and loading the old shaders. BUG=176289 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193411

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -7 lines) Patch
M content/browser/gpu/shader_disk_cache.cc View 1 2 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dsinclair
Al, PTAL.
7 years, 8 months ago (2013-04-05 18:26:26 UTC) #1
apatrick_chromium
lgtm https://codereview.chromium.org/13730005/diff/1/content/browser/gpu/shader_disk_cache.cc File content/browser/gpu/shader_disk_cache.cc (right): https://codereview.chromium.org/13730005/diff/1/content/browser/gpu/shader_disk_cache.cc#newcode590 content/browser/gpu/shader_disk_cache.cc:590: /* The cache is considered available after we ...
7 years, 8 months ago (2013-04-08 18:03:05 UTC) #2
dsinclair
https://codereview.chromium.org/13730005/diff/1/content/browser/gpu/shader_disk_cache.cc File content/browser/gpu/shader_disk_cache.cc (right): https://codereview.chromium.org/13730005/diff/1/content/browser/gpu/shader_disk_cache.cc#newcode590 content/browser/gpu/shader_disk_cache.cc:590: /* The cache is considered available after we have ...
7 years, 8 months ago (2013-04-09 22:52:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/13730005/5001
7 years, 8 months ago (2013-04-10 01:04:35 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=101533
7 years, 8 months ago (2013-04-10 03:55:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/13730005/5001
7 years, 8 months ago (2013-04-10 14:14:20 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 17:39:13 UTC) #7
Message was sent while issue was closed.
Change committed as 193411

Powered by Google App Engine
This is Rietveld 408576698