Chromium Code Reviews
DescriptionReplace blink::WebDiscardableMemory with base::DiscardableMemory.
* Inline WebDiscardableMemoryImpl into its only user, PurgeableVector, which is
allowed to see base by virtue of being in platform.
* Augment base::TestDiscardableMemoryAllocator's implementation with the same
checks as Blink's.
* Observing that the actual implementation never returns nullptr, remove logic
that handles that (as other clients of base::DiscardableMemoryAllocator don't).
* Supply a base::TestDiscardableMemoryAllocator in blink_platform_unittests.
* Modify PurgeableVectorTest to vary only whether PurgeableVector requests
discardable memory (PurgeableOption), since Blink's real platform (Chromium)
does support it. Change all tests which don't vary in this way to be not
parameterized.
Committed: https://crrev.com/36fc372117d5c40162dc014aaba4bbb7e3d5779a
Cr-Commit-Position: refs/heads/master@{#381378}
Patch Set 1 #Patch Set 2 : a few non-functional fixes #Patch Set 3 : #Patch Set 4 : remove superfluous includes #Patch Set 5 : missing OwnPtr/PassOwnPtr includes in SharedBufferTest #
Total comments: 2
Patch Set 6 : use StringPiece::as_string #Messages
Total messages: 16 (7 generated)
|