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

Issue 2638933003: Add SHA1 data checksum to on-disk shader cache (Closed)

Created:
3 years, 11 months ago by ericrk
Modified:
3 years, 11 months ago
Reviewers:
Ilya Sherman, jbauman
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SHA1 data checksum to on-disk shader cache Previously, the on-disk cache was stored with a SHA1 hash of a number of common peices of system info, such as GL Vendor, OS version, etc... This change adds the actual data being stored to the SHA1, which should protect against corruption on disk. BUG=658779 Review-Url: https://codereview.chromium.org/2638933003 Cr-Commit-Position: refs/heads/master@{#444802} Committed: https://chromium.googlesource.com/chromium/src/+/5c34fe289869ccd38b3cf39add76b00e2c51cb97

Patch Set 1 #

Patch Set 2 : nit remove braces #

Total comments: 2

Patch Set 3 : Add a histogram to track shader load prefix mismatches. #

Total comments: 2

Patch Set 4 : add histogram enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -13 lines) Patch
M content/browser/gpu/gpu_process_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 2 chunks +19 lines, -11 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
ericrk
3 years, 11 months ago (2017-01-17 21:58:44 UTC) #4
jbauman
https://codereview.chromium.org/2638933003/diff/20001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/2638933003/diff/20001/content/browser/gpu/gpu_process_host.cc#newcode1180 content/browser/gpu/gpu_process_host.cc:1180: if (!key.compare(0, prefix.length(), prefix)) Could you add a UMA ...
3 years, 11 months ago (2017-01-18 01:24:05 UTC) #7
ericrk
https://codereview.chromium.org/2638933003/diff/20001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/2638933003/diff/20001/content/browser/gpu/gpu_process_host.cc#newcode1180 content/browser/gpu/gpu_process_host.cc:1180: if (!key.compare(0, prefix.length(), prefix)) On 2017/01/18 01:24:05, jbauman wrote: ...
3 years, 11 months ago (2017-01-18 19:44:16 UTC) #8
jbauman
lgtm
3 years, 11 months ago (2017-01-18 23:33:37 UTC) #9
ericrk
+isherman for histograms.xml. Thanks!
3 years, 11 months ago (2017-01-18 23:35:17 UTC) #11
Ilya Sherman
Metrics LGTM % a comment: https://codereview.chromium.org/2638933003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2638933003/diff/40001/tools/metrics/histograms/histograms.xml#newcode20383 tools/metrics/histograms/histograms.xml:20383: +<histogram name="GPU.ShaderLoadPrefixOK"> Please add ...
3 years, 11 months ago (2017-01-19 02:08:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2638933003/60001
3 years, 11 months ago (2017-01-19 17:48:32 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/5c34fe289869ccd38b3cf39add76b00e2c51cb97
3 years, 11 months ago (2017-01-19 18:53:47 UTC) #22
ericrk
3 years, 11 months ago (2017-01-19 23:25:59 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2638933003/diff/40001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (right):

https://codereview.chromium.org/2638933003/diff/40001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:20383: +<histogram
name="GPU.ShaderLoadPrefixOK">
On 2017/01/19 02:08:43, Ilya Sherman wrote:
> Please add an enum (just in this file) with labels for the two cases, like
> "didn't match" and "matched".

There was already a BooleanMatched enum which seems appropriate. Added it to
this histogram.

Powered by Google App Engine
This is Rietveld 408576698