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

Issue 12500009: Add the ability to clear the shader disk cache. (Closed)

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

Description

Add the ability to clear the shader disk cache. When the browser cache for a given profile is cleared we will now clear out any shaders stored in the shader disk cache for that profile. BUG=176289 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192511

Patch Set 1 #

Patch Set 2 : #

Total comments: 30

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Use StoragePartition instead of new content API. #

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Patch Set 11 : Remove context code, use GetPath() in the StoragePartition. #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 8

Patch Set 14 : Add AsyncClearDataBetween unittest. #

Total comments: 4

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -16 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/shader_disk_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +58 lines, -2 lines 0 comments Download
M content/browser/gpu/shader_disk_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +192 lines, -8 lines 0 comments Download
A content/browser/gpu/shader_disk_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +75 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +9 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +28 lines, -0 lines 0 comments Download
A content/browser/storage_partition_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +125 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
dsinclair
7 years, 9 months ago (2013-03-18 19:51:29 UTC) #1
jonathan.backer
Mostly just nits. I was concerned about a layering violation content/public/browser/shader_disk_cache.cc:15 and multiple clears in ...
7 years, 9 months ago (2013-03-20 18:39:04 UTC) #2
dsinclair
PTAL. https://codereview.chromium.org/12500009/diff/12001/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/12500009/diff/12001/chrome/browser/browsing_data/browsing_data_remover.h#newcode353 chrome/browser/browsing_data/browsing_data_remover.h:353: const base::Time delete_end); On 2013/03/20 18:39:05, jonathan.backer wrote: ...
7 years, 9 months ago (2013-03-21 17:46:59 UTC) #3
jonathan.backer
This is looking good. Just nits. https://codereview.chromium.org/12500009/diff/33001/content/browser/gpu/shader_disk_cache_impl.cc File content/browser/gpu/shader_disk_cache_impl.cc (right): https://codereview.chromium.org/12500009/diff/33001/content/browser/gpu/shader_disk_cache_impl.cc#newcode105 content/browser/gpu/shader_disk_cache_impl.cc:105: : public base::ThreadChecker, ...
7 years, 9 months ago (2013-03-21 21:06:36 UTC) #4
dsinclair
jam@ can you please take a look for content OWNERS. mkwst@ can you please take ...
7 years, 9 months ago (2013-03-21 21:31:22 UTC) #5
Mike West
Thanks for adding this! On 2013/03/21 21:31:22, dsinclair wrote: > mkwst@ can you please take ...
7 years, 9 months ago (2013-03-21 21:57:41 UTC) #6
jam
I don't think you need to add a new interface to content\public\browser. Instead how about ...
7 years, 9 months ago (2013-03-22 06:24:35 UTC) #7
dsinclair
On 2013/03/22 06:24:35, jam wrote: > I don't think you need to add a new ...
7 years, 9 months ago (2013-03-22 14:20:46 UTC) #8
dsinclair
On 2013/03/21 21:57:41, Mike West (chromium) wrote: > One nit, two questions: I see two ...
7 years, 9 months ago (2013-03-22 18:06:49 UTC) #9
dsinclair
https://codereview.chromium.org/12500009/diff/33001/content/browser/gpu/shader_disk_cache_impl.cc File content/browser/gpu/shader_disk_cache_impl.cc (right): https://codereview.chromium.org/12500009/diff/33001/content/browser/gpu/shader_disk_cache_impl.cc#newcode105 content/browser/gpu/shader_disk_cache_impl.cc:105: : public base::ThreadChecker, On 2013/03/21 21:06:36, jonathan.backer wrote: > ...
7 years, 9 months ago (2013-03-22 18:08:23 UTC) #10
jam
On 2013/03/22 14:20:46, dsinclair wrote: > On 2013/03/22 06:24:35, jam wrote: > > I don't ...
7 years, 9 months ago (2013-03-25 19:57:04 UTC) #11
dsinclair
Done. PTAL. I removed the shader_disk_cache from the public API, the clear goes through an ...
7 years, 9 months ago (2013-03-26 14:08:54 UTC) #12
jam
https://codereview.chromium.org/12500009/diff/68001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/12500009/diff/68001/content/browser/storage_partition_impl.cc#newcode144 content/browser/storage_partition_impl.cc:144: const base::FilePath& context_path, this makes me wonder, should the ...
7 years, 9 months ago (2013-03-26 17:04:16 UTC) #13
awong
On 2013/03/26 17:04:16, jam wrote: > https://codereview.chromium.org/12500009/diff/68001/content/browser/storage_partition_impl.cc > File content/browser/storage_partition_impl.cc (right): > > https://codereview.chromium.org/12500009/diff/68001/content/browser/storage_partition_impl.cc#newcode144 > ...
7 years, 9 months ago (2013-03-26 18:50:15 UTC) #14
dsinclair
On 2013/03/26 18:50:15, awong wrote: > A good litmus test is whether or not the ...
7 years, 9 months ago (2013-03-26 18:57:37 UTC) #15
awong
On Tue, Mar 26, 2013 at 11:57 AM, <dsinclair@chromium.org> wrote: > On 2013/03/26 18:50:15, awong ...
7 years, 9 months ago (2013-03-26 19:08:10 UTC) #16
dsinclair
On 2013/03/26 19:08:10, awong wrote: > On Tue, Mar 26, 2013 at 11:57 AM, <mailto:dsinclair@chromium.org> ...
7 years, 9 months ago (2013-03-26 19:20:01 UTC) #17
awong
Gotcha. How is the cache indexed then? The main concern I could see is if ...
7 years, 9 months ago (2013-03-26 19:57:15 UTC) #18
jam
On 2013/03/26 19:57:15, awong wrote: > Gotcha. How is the cache indexed then? The main ...
7 years, 9 months ago (2013-03-26 23:19:08 UTC) #19
dsinclair
On 2013/03/26 23:19:08, jam wrote: > from a code-view perspective, it seems it would be ...
7 years, 9 months ago (2013-03-27 00:39:49 UTC) #20
awong
From a isolation perspective, there's no problem with this because you are just preserving existing ...
7 years, 9 months ago (2013-03-27 01:59:42 UTC) #21
dsinclair
On 2013/03/27 01:59:42, awong wrote: > From a isolation perspective, there's no problem with this ...
7 years, 9 months ago (2013-03-27 13:12:21 UTC) #22
jam
On 2013/03/27 00:39:49, dsinclair wrote: > On 2013/03/26 23:19:08, jam wrote: > > from a ...
7 years, 9 months ago (2013-03-27 16:14:48 UTC) #23
dsinclair
On 2013/03/27 16:14:48, jam wrote: > I would prefer that it lands with the cache ...
7 years, 8 months ago (2013-03-29 14:41:18 UTC) #24
jam
lgtm https://codereview.chromium.org/12500009/diff/92001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/12500009/diff/92001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode782 chrome/browser/browsing_data/browsing_data_remover.cc:782: // This function should be called on the ...
7 years, 8 months ago (2013-04-02 17:34:50 UTC) #25
Mike West
BrowsingDataRemover bits are fine, as long as you add a test for AsyncClearDataBetween as we ...
7 years, 8 months ago (2013-04-02 17:43:39 UTC) #26
dsinclair
jam PTAL. I added a unit test for AsyncClearDataBetween. https://codereview.chromium.org/12500009/diff/92001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/12500009/diff/92001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode782 chrome/browser/browsing_data/browsing_data_remover.cc:782: ...
7 years, 8 months ago (2013-04-03 18:59:23 UTC) #27
jam
https://codereview.chromium.org/12500009/diff/92001/content/browser/gpu/shader_disk_cache.h File content/browser/gpu/shader_disk_cache.h (right): https://codereview.chromium.org/12500009/diff/92001/content/browser/gpu/shader_disk_cache.h#newcode114 content/browser/gpu/shader_disk_cache.h:114: virtual ~ShaderCacheFactory(); On 2013/04/03 18:59:23, dsinclair wrote: > On ...
7 years, 8 months ago (2013-04-04 14:53:31 UTC) #28
dsinclair
https://codereview.chromium.org/12500009/diff/92001/content/browser/gpu/shader_disk_cache.h File content/browser/gpu/shader_disk_cache.h (right): https://codereview.chromium.org/12500009/diff/92001/content/browser/gpu/shader_disk_cache.h#newcode114 content/browser/gpu/shader_disk_cache.h:114: virtual ~ShaderCacheFactory(); On 2013/04/04 14:53:31, jam wrote: > On ...
7 years, 8 months ago (2013-04-04 16:03:59 UTC) #29
jam
lgtm
7 years, 8 months ago (2013-04-04 16:11:44 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12500009/117001
7 years, 8 months ago (2013-04-04 16:22:41 UTC) #31
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 16:30:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dsinclair@chromium.org/12500009/121003
7 years, 8 months ago (2013-04-05 02:56:48 UTC) #33
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 05:58:20 UTC) #34
Message was sent while issue was closed.
Change committed as 192511

Powered by Google App Engine
This is Rietveld 408576698