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

Issue 12224017: Create a new disk_cache type, SHADER_CACHE. (Closed)

Created:
7 years, 10 months ago by dsinclair
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Create a new disk_cache type, SHADER_CACHE. Create a new type of disk_cache to be used by the GL Shader cache. This cache acts similar to the regular DISK_CACHE except the rank of the entry is not updated if the entry is not modified. This means we can read entries as we iterate and the iterators do not get shuffled around. BUG=166763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182343

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Fix OnExternalCacheHit handling. #

Total comments: 2

Patch Set 4 : Better fix for OnExternalCacheHit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -5 lines) Patch
M net/base/cache_type.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 11 chunks +115 lines, -0 lines 0 comments Download
M net/disk_cache/entry_unittest.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M net/disk_cache/histogram_macros.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
dsinclair
Hello Ricardo, I've created the new SHADER_CACHE type for the GL cache. Can you please ...
7 years, 10 months ago (2013-02-05 22:09:51 UTC) #1
rvargas (doing something else)
BackendImpl::SyncInit should dcheck that new_eviction_ is false. We need a test following DiskCacheEntryTest::GetTimes that verifies ...
7 years, 10 months ago (2013-02-06 20:06:39 UTC) #2
dsinclair
https://codereview.chromium.org/12224017/diff/1/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/12224017/diff/1/net/disk_cache/backend_unittest.cc#newcode1150 net/disk_cache/backend_unittest.cc:1150: TEST_F(DiskCacheBackendTest, ShaderCacheEnumerationReadData) { On 2013/02/06 20:06:39, rvargas wrote: > ...
7 years, 10 months ago (2013-02-07 18:03:07 UTC) #3
rvargas (doing something else)
lgtm after fixing the unit test. https://codereview.chromium.org/12224017/diff/3001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/12224017/diff/3001/net/disk_cache/backend_unittest.cc#newcode1175 net/disk_cache/backend_unittest.cc:1175: ASSERT_EQ(net::OK, OpenEntry(second, &entry2)); ...
7 years, 10 months ago (2013-02-11 23:12:47 UTC) #4
dsinclair
rvargas, realized that OnExternalCacheHit would not work with the shader cache. I made a couple ...
7 years, 10 months ago (2013-02-12 16:05:50 UTC) #5
rvargas (doing something else)
https://codereview.chromium.org/12224017/diff/10002/net/disk_cache/backend_impl.cc File net/disk_cache/backend_impl.cc (right): https://codereview.chromium.org/12224017/diff/10002/net/disk_cache/backend_impl.cc#newcode675 net/disk_cache/backend_impl.cc:675: UpdateRankOnCacheHit(cache_entry, false); Not so happy. How about UpdateRank(cache_entry, cache_type() ...
7 years, 10 months ago (2013-02-13 02:27:17 UTC) #6
dsinclair
https://codereview.chromium.org/12224017/diff/10002/net/disk_cache/backend_impl.cc File net/disk_cache/backend_impl.cc (right): https://codereview.chromium.org/12224017/diff/10002/net/disk_cache/backend_impl.cc#newcode675 net/disk_cache/backend_impl.cc:675: UpdateRankOnCacheHit(cache_entry, false); Done. That's much nicer. Thanks. On 2013/02/13 ...
7 years, 10 months ago (2013-02-13 18:20:08 UTC) #7
rvargas (doing something else)
revision 4 lgtm.
7 years, 10 months ago (2013-02-13 20:25:28 UTC) #8
dsinclair
On 2013/02/13 20:25:28, rvargas wrote: > revision 4 lgtm. Awesome, thanks. Quick question, does the ...
7 years, 10 months ago (2013-02-13 20:28:06 UTC) #9
rvargas (doing something else)
On 2013/02/13 20:28:06, dsinclair wrote: > On 2013/02/13 20:25:28, rvargas wrote: > > revision 4 ...
7 years, 10 months ago (2013-02-13 20:40:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12224017/13001
7 years, 10 months ago (2013-02-13 21:08:07 UTC) #11
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 23:57:39 UTC) #12
Message was sent while issue was closed.
Change committed as 182343

Powered by Google App Engine
This is Rietveld 408576698