Home
last modified time | relevance | path

Searched refs:SkBufferBlock (Results 1 – 4 of 4) sorted by relevance

/external/skqp/src/core/
DSkRWBuffer.cpp20 struct SkBufferBlock { struct
21 SkBufferBlock* fNext; // updated by the writer argument
25 SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {} in SkBufferBlock() argument
32 static SkBufferBlock* Alloc(size_t length) { in Alloc() argument
34 void* buffer = sk_malloc_throw(sizeof(SkBufferBlock) + capacity); in Alloc()
35 return new (buffer) SkBufferBlock(capacity); in Alloc()
61 const size_t minSize = kMinAllocSize - sizeof(SkBufferBlock); in LengthToCapacity() argument
68 SkBufferBlock fBlock;
94 SkBufferBlock* block = fBlock.fNext; in unref()
97 SkBufferBlock* next = block->fNext; in unref()
[all …]
/external/skia/src/core/
DSkRWBuffer.cpp20 struct SkBufferBlock { struct
21 SkBufferBlock* fNext; // updated by the writer argument
25 SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {} in SkBufferBlock() function
32 static SkBufferBlock* Alloc(size_t length) { in Alloc() argument
34 void* buffer = sk_malloc_throw(sizeof(SkBufferBlock) + capacity); in Alloc()
35 return new (buffer) SkBufferBlock(capacity); in Alloc()
61 const size_t minSize = kMinAllocSize - sizeof(SkBufferBlock); in LengthToCapacity() argument
68 SkBufferBlock fBlock;
94 SkBufferBlock* block = fBlock.fNext; in unref()
97 SkBufferBlock* next = block->fNext; in unref()
[all …]
/external/skqp/include/core/
DSkRWBuffer.h13 struct SkBufferBlock;
55 const SkBufferBlock* fBlock;
61 SkROBuffer(const SkBufferHead* head, size_t available, const SkBufferBlock* fTail);
66 const SkBufferBlock* fTail;
107 SkBufferBlock* fTail;
/external/skia/include/core/
DSkRWBuffer.h13 struct SkBufferBlock;
55 const SkBufferBlock* fBlock;
61 SkROBuffer(const SkBufferHead* head, size_t available, const SkBufferBlock* fTail);
66 const SkBufferBlock* fTail;
107 SkBufferBlock* fTail;