OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DiscardableMemory
(Results
1 - 19
of
19
) sorted by null
/external/chromium_org/base/memory/
discardable_memory_linux.cc
10
bool
DiscardableMemory
::SupportedNatively() {
15
scoped_ptr<
DiscardableMemory
>
DiscardableMemory
::CreateLockedMemory(
20
return scoped_ptr<
DiscardableMemory
>();
22
return memory.PassAs<
DiscardableMemory
>();
26
bool
DiscardableMemory
::PurgeForTestingSupported() {
31
void
DiscardableMemory
::PurgeForTesting() {
discardable_memory_win.cc
10
bool
DiscardableMemory
::SupportedNatively() {
15
scoped_ptr<
DiscardableMemory
>
DiscardableMemory
::CreateLockedMemory(
20
return scoped_ptr<
DiscardableMemory
>();
22
return memory.PassAs<
DiscardableMemory
>();
26
bool
DiscardableMemory
::PurgeForTestingSupported() {
31
void
DiscardableMemory
::PurgeForTesting() {
discardable_memory_unittest.cc
20
scoped_ptr<
DiscardableMemory
> memory(
21
DiscardableMemory
::CreateLockedMemory(max_allowed_allocation_size + 1));
31
ASSERT_TRUE(
DiscardableMemory
::SupportedNatively());
37
ASSERT_FALSE(
DiscardableMemory
::SupportedNatively());
43
const scoped_ptr<
DiscardableMemory
> memory(
44
DiscardableMemory
::CreateLockedMemory(kSize));
61
const scoped_ptr<
DiscardableMemory
> memory(
62
DiscardableMemory
::CreateLockedMemory(kSize));
69
ASSERT_TRUE(
DiscardableMemory
::PurgeForTestingSupported());
71
const scoped_ptr<
DiscardableMemory
> memory
[
all
...]
discardable_memory.h
21
// Platform abstraction for discardable memory.
DiscardableMemory
is used to
36
// preferred pattern of usage for
DiscardableMemory
is to lock down the
51
// Thread-safety:
DiscardableMemory
instances are not thread-safe.
52
class BASE_EXPORT
DiscardableMemory
{
54
virtual ~
DiscardableMemory
() {}
60
static scoped_ptr<
DiscardableMemory
> CreateLockedMemory(size_t size);
discardable_memory_provider.h
15
class
DiscardableMemory
;
21
struct hash<const base::
DiscardableMemory
*> {
22
size_t operator()(const base::
DiscardableMemory
* ptr) const {
33
//
DiscardableMemory
instances. It is used on platforms that do not support
34
// discardable memory natively. It keeps track of all
DiscardableMemory
58
void Register(const
DiscardableMemory
* discardable, size_t bytes);
61
void Unregister(const
DiscardableMemory
* discardable);
67
const
DiscardableMemory
* discardable, bool* purged);
71
void Release(const
DiscardableMemory
* discardable,
79
bool IsRegisteredForTest(const
DiscardableMemory
* discardable) const
[
all
...]
discardable_memory_mac.cc
23
class DiscardableMemoryMac : public
DiscardableMemory
{
78
bool
DiscardableMemory
::SupportedNatively() {
83
scoped_ptr<
DiscardableMemory
>
DiscardableMemory
::CreateLockedMemory(
94
return scoped_ptr<
DiscardableMemory
>();
96
return scoped_ptr<
DiscardableMemory
>(
101
bool
DiscardableMemory
::PurgeForTestingSupported() {
106
void
DiscardableMemory
::PurgeForTesting() {
discardable_memory_allocator_android_unittest.cc
34
void WriteToDiscardableMemory(
DiscardableMemory
* memory, size_t size) {
43
scoped_ptr<
DiscardableMemory
> memory(allocator_.Allocate(size));
52
scoped_ptr<
DiscardableMemory
> memory(allocator_.Allocate(size));
58
scoped_ptr<
DiscardableMemory
> memory(allocator_.Allocate(kPageSize));
65
scoped_ptr<
DiscardableMemory
> memory(allocator_.Allocate(kPageSize));
68
scoped_ptr<
DiscardableMemory
> memory_lock(allocator_.Allocate(kPageSize));
81
scoped_ptr<
DiscardableMemory
> memory(allocator_.Allocate(kPageSize));
94
scoped_ptr<
DiscardableMemory
> memory1(allocator_.Allocate(3 * kPageSize));
96
scoped_ptr<
DiscardableMemory
> memory2(allocator_.Allocate(2 * kPageSize));
98
scoped_ptr<
DiscardableMemory
> memory3(allocator_.Allocate(1 * kPageSize))
[
all
...]
discardable_memory_allocator_android.h
19
class
DiscardableMemory
;
32
// discardable_memory.h for
DiscardableMemory
's threading guarantees.
44
// Note that the allocator must outlive the returned
DiscardableMemory
46
scoped_ptr<
DiscardableMemory
> Allocate(size_t size);
discardable_memory_emulated.h
13
class DiscardableMemoryEmulated : public
DiscardableMemory
{
22
// Overridden from
DiscardableMemory
:
discardable_memory_provider_unittest.cc
18
class TestDiscardableMemory : public
DiscardableMemory
{
33
// Overridden from
DiscardableMemory
:
69
bool IsRegistered(const
DiscardableMemory
* discardable) {
73
bool CanBePurged(const
DiscardableMemory
* discardable) {
81
void* Memory(const
DiscardableMemory
* discardable) const {
93
scoped_ptr<
DiscardableMemory
> CreateLockedMemory(size_t size) {
97
return scoped_ptr<
DiscardableMemory
>();
98
return memory.PassAs<
DiscardableMemory
>();
115
const scoped_ptr<
DiscardableMemory
> discardable(CreateLockedMemory(size));
124
const scoped_ptr<
DiscardableMemory
> discardable(CreateLockedMemory(size))
[
all
...]
discardable_memory_android.cc
71
// This is the default implementation of
DiscardableMemory
on Android which is
75
class DiscardableMemoryAndroidSimple : public
DiscardableMemory
{
89
//
DiscardableMemory
:
202
bool
DiscardableMemory
::SupportedNatively() {
222
scoped_ptr<
DiscardableMemory
>
DiscardableMemory
::CreateLockedMemory(
225
return scoped_ptr<
DiscardableMemory
>();
242
return scoped_ptr<
DiscardableMemory
>(
250
bool
DiscardableMemory
::PurgeForTestingSupported() {
255
void
DiscardableMemory
::PurgeForTesting()
[
all
...]
discardable_memory_allocator_android.cc
27
// - DiscardableAshmemChunk: class implementing the
DiscardableMemory
interface
52
: public
DiscardableMemory
{
72
//
DiscardableMemory
:
119
// Returns a new instance of
DiscardableMemory
whose size is greater or equal
130
scoped_ptr<
DiscardableMemory
> Allocate_Locked(size_t client_requested_size,
134
scoped_ptr<
DiscardableMemory
> memory = ReuseFreeChunk_Locked(
140
return scoped_ptr<
DiscardableMemory
>();
196
scoped_ptr<
DiscardableMemory
> ReuseFreeChunk_Locked(
203
return scoped_ptr<
DiscardableMemory
>();
233
scoped_ptr<
DiscardableMemory
> memory
[
all
...]
discardable_memory_provider.cc
70
const
DiscardableMemory
* discardable, size_t bytes) {
77
const
DiscardableMemory
* discardable) {
93
const
DiscardableMemory
* discardable,
134
const
DiscardableMemory
* discardable,
154
const
DiscardableMemory
* discardable) const {
161
const
DiscardableMemory
* discardable) const {
/external/chromium_org/skia/ext/
SkDiscardableMemory_chrome.h
13
// base::
DiscardableMemory
.
26
SkDiscardableMemoryChrome(scoped_ptr<base::
DiscardableMemory
> memory);
28
scoped_ptr<base::
DiscardableMemory
> discardable_;
SkDiscardableMemory_chrome.cc
32
scoped_ptr<base::
DiscardableMemory
> memory)
37
scoped_ptr<base::
DiscardableMemory
> discardable(
38
base::
DiscardableMemory
::CreateLockedMemory(bytes));
/external/chromium_org/webkit/child/
web_discardable_memory_impl.h
35
WebDiscardableMemoryImpl(scoped_ptr<base::
DiscardableMemory
> memory);
37
scoped_ptr<base::
DiscardableMemory
> discardable_;
web_discardable_memory_impl.cc
14
scoped_ptr<base::
DiscardableMemory
> memory(
15
base::
DiscardableMemory
::CreateLockedMemory(size));
44
scoped_ptr<base::
DiscardableMemory
> memory)
webkitplatformsupport_child_impl.cc
96
if (!base::
DiscardableMemory
::SupportedNatively())
/external/skia/tests/
DiscardableMemoryTest.cpp
13
DEF_TEST(
DiscardableMemory
, reporter) {
Completed in 117 milliseconds