diff options
author | reveman <reveman@chromium.org> | 2015-04-16 13:52:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-16 20:52:57 +0000 |
commit | 2cc373d6b2ad69b148aac9beed6874b9c8f606a5 (patch) | |
tree | 9d82e9a96004b6fc5ea7c728197740dbe0074e6e /skia | |
parent | ad74a7e371149624d91f96cf662f70af6d18787f (diff) | |
download | chromium_src-2cc373d6b2ad69b148aac9beed6874b9c8f606a5.zip chromium_src-2cc373d6b2ad69b148aac9beed6874b9c8f606a5.tar.gz chromium_src-2cc373d6b2ad69b148aac9beed6874b9c8f606a5.tar.bz2 |
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}
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/SkDiscardableMemory_chrome.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ext/SkDiscardableMemory_chrome.cc b/skia/ext/SkDiscardableMemory_chrome.cc index 5bb6928..1a98720 100644 --- a/skia/ext/SkDiscardableMemory_chrome.cc +++ b/skia/ext/SkDiscardableMemory_chrome.cc @@ -14,7 +14,7 @@ bool SkDiscardableMemoryChrome::lock() { } void* SkDiscardableMemoryChrome::data() { - return discardable_->Memory(); + return discardable_->data(); } void SkDiscardableMemoryChrome::unlock() { |