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

Issue 12645006: Create a platform-dependent object for accessing purgeable memory. (Closed)

Created:
7 years, 9 months ago by scroggo
Modified:
7 years, 9 months ago
Reviewers:
djsollen, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Create a platform-dependent object for accessing purgeable memory. Siphoned off from https://codereview.chromium.org/12433020/ Create a Skia class which can provide purgeable memory in a platform- dependent way. Include an implementation for Ashmem and Mac/iOS. Committed: https://code.google.com/p/skia/source/detail?r=8176

Patch Set 1 #

Total comments: 7

Patch Set 2 : Respond to comments. #

Patch Set 3 : Add forgotten file. #

Patch Set 4 : Use ashmem_purge_all_caches. #

Patch Set 5 : Build mac version on iOS as well. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -6 lines) Patch
M gyp/core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/ports.gyp View 1 2 3 4 5 chunks +11 lines, -6 lines 0 comments Download
A src/lazy/SkPurgeableMemoryBlock.h View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A src/lazy/SkPurgeableMemoryBlock_common.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download
A src/ports/SkPurgeableMemoryBlock_android.cpp View 1 2 3 1 chunk +111 lines, -0 lines 0 comments Download
A src/ports/SkPurgeableMemoryBlock_mac.cpp View 1 1 chunk +105 lines, -0 lines 0 comments Download
A src/ports/SkPurgeableMemoryBlock_none.cpp View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
djsollen
I really like the concept so overall I'm onboard with the CL, but I did ...
7 years, 9 months ago (2013-03-14 13:56:31 UTC) #1
scroggo
Thanks for the feedback! Your name suggestions are much better. https://codereview.chromium.org/12645006/diff/1/src/lazy/SkPurgeableMemoryBlock.h File src/lazy/SkPurgeableMemoryBlock.h (right): https://codereview.chromium.org/12645006/diff/1/src/lazy/SkPurgeableMemoryBlock.h#newcode19 ...
7 years, 9 months ago (2013-03-14 15:36:13 UTC) #2
scroggo
https://codereview.chromium.org/12645006/diff/1/src/lazy/SkPurgeableMemoryBlock.h File src/lazy/SkPurgeableMemoryBlock.h (right): https://codereview.chromium.org/12645006/diff/1/src/lazy/SkPurgeableMemoryBlock.h#newcode49 src/lazy/SkPurgeableMemoryBlock.h:49: int getFD() const { return fFD; } On 2013/03/14 ...
7 years, 9 months ago (2013-03-14 18:05:32 UTC) #3
djsollen
lgtm
7 years, 9 months ago (2013-03-15 16:54:22 UTC) #4
scroggo
7 years, 9 months ago (2013-03-15 18:08:15 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as r8176 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698