Descriptionbase: Rename DiscardableMemory::Memory() to ::data().
This make the API more consistent with RefCountedMemory and
other discardable memory interfaces such as SkDiscardableMemory.
Also improves readability by replacing memory->Memory() calls
with memory->data() calls.
A handy method is also added to simplify calling data() with a
reinterpret_cast. This is also consistent with RefCountedMemory.
BUG=
Committed: https://crrev.com/2cc373d6b2ad69b148aac9beed6874b9c8f606a5
Cr-Commit-Position: refs/heads/master@{#325509}
Patch Set 1 #Patch Set 2 : mojo fix #Patch Set 3 : another mojo fix #Patch Set 4 : mojo unittest #Messages
Total messages: 13 (3 generated)
|