summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2015-04-16 13:52:18 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-16 20:52:57 +0000
commit2cc373d6b2ad69b148aac9beed6874b9c8f606a5 (patch)
tree9d82e9a96004b6fc5ea7c728197740dbe0074e6e /skia
parentad74a7e371149624d91f96cf662f70af6d18787f (diff)
downloadchromium_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.cc2
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() {