Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 1094433002: base: Rename DiscardableMemory::Memory() to ::data(). (Closed)

Created:
5 years, 8 months ago by reveman
Modified:
5 years, 8 months ago
Reviewers:
Avi (use Gerrit), Nico, sky
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, gavinp+memory_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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= 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M base/memory/discardable_memory.h View 1 chunk +7 lines, -2 lines 0 comments Download
M base/test/test_discardable_memory_allocator.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_discardable_shared_memory_manager_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/web_discardable_memory_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/host_discardable_shared_memory_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/html_viewer/discardable_memory_allocator.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M mojo/services/html_viewer/discardable_memory_allocator_unittest.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M skia/ext/SkDiscardableMemory_chrome.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
reveman
5 years, 8 months ago (2015-04-16 04:23:10 UTC) #2
Avi (use Gerrit)
LGTM, though I was looking forward to seeing some uses of the cast.
5 years, 8 months ago (2015-04-16 14:43:25 UTC) #3
reveman
On 2015/04/16 at 14:43:25, avi wrote: > LGTM, though I was looking forward to seeing ...
5 years, 8 months ago (2015-04-16 15:47:19 UTC) #4
reveman
+thakis for base/ and skia/ +sky for mojo/services/html_viewer/
5 years, 8 months ago (2015-04-16 15:50:13 UTC) #6
sky
LGTM
5 years, 8 months ago (2015-04-16 16:07:02 UTC) #7
Nico
lgtm
5 years, 8 months ago (2015-04-16 16:41:48 UTC) #8
Avi (use Gerrit)
On 2015/04/16 15:47:19, reveman wrote: > On 2015/04/16 at 14:43:25, avi wrote: > > LGTM, ...
5 years, 8 months ago (2015-04-16 18:52:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094433002/60001
5 years, 8 months ago (2015-04-16 19:45:38 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-16 20:52:29 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 20:53:38 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2cc373d6b2ad69b148aac9beed6874b9c8f606a5
Cr-Commit-Position: refs/heads/master@{#325509}

Powered by Google App Engine
This is Rietveld 408576698