|
|
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
|
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
|
Total messages: 16 (0 generated)
|