base: 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=
Review URL: https://codereview.chromium.org/1094433002
Cr-Commit-Position: refs/heads/master@{#325509}
CrOS-Libchrome-Original-Commit: 2cc373d6b2ad69b148aac9beed6874b9c8f606a5
4 files changed