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

Issue 16379004: Android should be able to discard CachedResources (Closed)

Created:
7 years, 6 months ago by abarth-chromium
Modified:
7 years, 6 months ago
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, adamk+blink_chromium.org, Nate Chapin, jeez, gavinp+loader_chromium.org, esprehn, qinmin
Visibility:
Public.

Description

Android should be able to discard CachedResources This CL removes the Mac OS X specific implemenation of PurgeableBuffer in favor of one built on top of Chromium's WebDiscardableMemory abstraction. Moving this code to WebDiscardableMemory means that PurgeableBuffer now works on Android. Specifically, that means that the Android kernel can now evict CachedResources from the MemoryCache when the system is under memory pressure. R=eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151877

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix style nit #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -250 lines) Patch
M Source/core/core.gypi View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M Source/core/core_tmp.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/cache/CachedCSSStyleSheet.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/cache/CachedImage.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/cache/CachedResource.h View 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/loader/cache/CachedResource.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
D Source/core/platform/PurgePriority.h View 1 chunk +0 lines, -39 lines 0 comments Download
M Source/core/platform/PurgeableBuffer.h View 2 chunks +31 lines, -35 lines 0 comments Download
A Source/core/platform/PurgeableBuffer.cpp View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
M Source/core/platform/SharedBuffer.h View 1 chunk +5 lines, -5 lines 0 comments Download
D Source/core/platform/mac/PurgeableBufferMac.cpp View 1 chunk +0 lines, -150 lines 0 comments Download
M Source/wtf/Platform.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/wtf/VMTags.h View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
abarth-chromium
7 years, 6 months ago (2013-06-05 00:43:19 UTC) #1
abarth-chromium
7 years, 6 months ago (2013-06-05 00:47:37 UTC) #2
abarth-chromium
@jamesr: Would you be willing to review this CL?
7 years, 6 months ago (2013-06-05 19:33:37 UTC) #3
eseidel
lgtm I find it difficult to believe that this is worth the code complexity for ...
7 years, 6 months ago (2013-06-05 19:39:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/16379004/7001
7 years, 6 months ago (2013-06-05 19:40:00 UTC) #5
commit-bot: I haz the power
Failed to apply patch for Source/core/core.gyp/core.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; A Source/core/core.gyp ...
7 years, 6 months ago (2013-06-05 19:40:08 UTC) #6
jamesr
I can definitely review it. This patch won't work as is, it'll DCHECK fail on ...
7 years, 6 months ago (2013-06-05 19:41:25 UTC) #7
jamesr
Ah, I missed that the platform support implementation checks if the primitive is supported before ...
7 years, 6 months ago (2013-06-05 19:52:15 UTC) #8
abarth-chromium
On 2013/06/05 19:52:15, jamesr wrote: > Ah, I missed that the platform support implementation checks ...
7 years, 6 months ago (2013-06-05 19:55:13 UTC) #9
Avi (use Gerrit)
On 2013/06/05 19:55:13, abarth wrote: > On 2013/06/05 19:52:15, jamesr wrote: > > Ah, I ...
7 years, 6 months ago (2013-06-05 19:59:41 UTC) #10
abarth-chromium
On 2013/06/05 19:59:41, Avi wrote: > If priority would make base::DiscardableMemory let us know, but ...
7 years, 6 months ago (2013-06-05 20:03:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/16379004/17001
7 years, 6 months ago (2013-06-05 22:23:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/16379004/17001
7 years, 6 months ago (2013-06-05 22:34:14 UTC) #13
Alpha Left Google
LGTM. I believe this allows purging of SharedBuffer which contains raw data (encoded data). Purging ...
7 years, 6 months ago (2013-06-05 22:35:01 UTC) #14
abarth-chromium
On 2013/06/05 22:35:01, Alpha wrote: > I believe this allows purging of SharedBuffer which contains ...
7 years, 6 months ago (2013-06-05 22:45:18 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 02:13:21 UTC) #16
Message was sent while issue was closed.
Change committed as 151877

Powered by Google App Engine
This is Rietveld 408576698