/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | HandleAllocator_unittest.cpp | 35 GLuint handle = allocator.allocate(); in TEST() 61 GLuint normalHandle = allocator.allocate(); in TEST() 75 GLuint result = limitedAllocator.allocate(); in TEST() 89 GLint finalResult = limitedAllocator.allocate(); in TEST() 101 GLuint normalHandle = allocator.allocate(); in TEST() 114 GLuint normalHandle = allocator.allocate(); in TEST() 128 allocatedList[count] = allocator.allocate(); in TEST() 146 EXPECT_EQ(1u, allocator.allocate()); in TEST() 147 EXPECT_EQ(2u, allocator.allocate()); in TEST() 148 EXPECT_EQ(4u, allocator.allocate()); in TEST() [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_memorypool.cpp | 47 void *allocate(size_t size); 48 void *allocate(size_t size, size_t align); 86 void *MemoryPool::allocate(size_t size) in allocate() function in r600::MemoryPool 88 return impl->pool->allocate(size); in allocate() 91 void *MemoryPool::allocate(size_t size, size_t align) in allocate() function in r600::MemoryPool 93 return impl->pool->allocate(size, align); in allocate() 113 return MemoryPool::instance().allocate(size); in operator new() 138 void *MemoryBacking::allocate(size_t size) in allocate() function in r600::MemoryBacking 145 void *MemoryBacking::allocate(size_t size, size_t align) in allocate() function in r600::MemoryBacking
|
H A D | sfn_memorypool.h | 56 void *allocate(size_t size); 57 void *allocate(size_t size, size_t align); 75 T *allocate(size_t n) { in allocate() function 76 return (T *)MemoryPool::instance().allocate(n * sizeof(T), alignof(T)); in allocate()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | PoolAlloc.h | 72 // libCStd on some platforms have a different allocate/deallocate interface. 75 void *allocate(size_type n) { return getAllocator().allocate(n); } in allocate() function in pool_allocator 76 void *allocate(size_type n, const void *) { return getAllocator().allocate(n); } in allocate() function in pool_allocator 79 pointer allocate(size_type n) in allocate() function in pool_allocator 81 return static_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate() 83 pointer allocate(size_type n, const void *) in allocate() function in pool_allocator 85 return static_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
|
/third_party/skia/tests/ |
H A D | SkBlockAllocatorTest.cpp | 64 pool->template allocate<4>(pool->preallocSize() / 2); in add_block() 71 auto br = pool->template allocate<1>(1); in alloc_byte() 132 auto p1 = pool->allocate<1>(14); in DEF_TEST() 135 auto p2 = pool->allocate<2>(24); in DEF_TEST() 138 auto p4 = pool->allocate<4>(28); in DEF_TEST() 141 auto p8 = pool->allocate<8>(40); in DEF_TEST() 144 auto p16 = pool->allocate<16>(64); in DEF_TEST() 147 auto p32 = pool->allocate<32>(96); in DEF_TEST() 156 auto pAvail = pool->allocate<4>(avail); in DEF_TEST() 162 auto pNextBlock = pool->allocate< in DEF_TEST() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
H A D | X87.cpp | 92 const uint32_t T1 = allocate##MemorySize(); \ in TEST_F() 94 const uint32_t T2 = allocate##MemorySize(); \ in TEST_F() 96 const uint32_t T3 = allocate##MemorySize(); \ in TEST_F() 98 const uint32_t T4 = allocate##MemorySize(); \ in TEST_F() 100 const uint32_t T5 = allocate##MemorySize(); \ in TEST_F() 102 const uint32_t T6 = allocate##MemorySize(); \ in TEST_F() 104 const uint32_t T7 = allocate##MemorySize(); \ in TEST_F() 107 const uint32_t N7 = allocate##MemorySize(); \ in TEST_F() 109 const uint32_t N6 = allocate##MemorySize(); \ in TEST_F() 111 const uint32_t N5 = allocate##MemorySiz in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | PoolAlloc.h | 24 // allocate a large number of small requests for heap memory, with the 151 // Call allocate() to actually acquire memory. Returns 0 if no memory 154 void* allocate(size_t numBytes); 214 size_t currentPageOffset; // next offset in top of inUseList to allocate from 217 tAllocStack mStack; // stack of where to allocate from, to partition pool 278 // libCStd on some platforms have a different allocate/deallocate interface. 281 void* allocate(size_type n) { in allocate() function in pool_allocator 282 return getAllocator().allocate(n); in allocate() 284 void* allocate(size_type n, const void*) { in allocate() function in pool_allocator 285 return getAllocator().allocate( in allocate() 289 pointer allocate(size_type n) { allocate() function in pool_allocator 292 pointer allocate(size_type n, const void*) { allocate() function in pool_allocator [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | PoolAlloc_unittest.cpp | 21 // Create a default pool allocator and allocate from it in TEST() 23 void *allocation = poolAllocator.allocate(numBytes); in TEST() 31 allocation = poolAllocator.allocate(numBytes); in TEST() 34 allocation = poolAllocator.allocate(10 * 1024); in TEST() 43 allocation = poolAllocator.allocate(numBytes); in TEST() 61 // Create a pool allocator to allocate from in TEST_P() 68 void *allocation = poolAllocator.allocate(numBytes); in TEST_P()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceInstX8632.h | 93 return new (Func->allocate<X86OperandMem>()) X86OperandMem( in create() 100 return new (Func->allocate<X86OperandMem>()) X86OperandMem( in create() 158 return new (Func->allocate<VariableSplit>()) VariableSplit(Func, Var, Part); in create() 384 return new (Func->allocate<InstX86FakeRMW>()) in create() 445 return new (Func->allocate<InstX86Label>()) InstX86Label(Func, Target); in create() 478 return new (Func->allocate<InstX86Br>()) in create() 485 return new (Func->allocate<InstX86Br>()) in create() 496 return new (Func->allocate<InstX86Br>()) in create() 505 return new (Func->allocate<InstX86Br>()) in create() 555 return new (Func->allocate<InstX86Jm in create() [all...] |
H A D | IceInstX8664.h | 88 return new (Func->allocate<X86OperandMem>()) in create() 95 return new (Func->allocate<X86OperandMem>()) in create() 323 return new (Func->allocate<InstX86FakeRMW>()) in create() 384 return new (Func->allocate<InstX86Label>()) InstX86Label(Func, Target); in create() 417 return new (Func->allocate<InstX86Br>()) in create() 424 return new (Func->allocate<InstX86Br>()) in create() 435 return new (Func->allocate<InstX86Br>()) in create() 444 return new (Func->allocate<InstX86Br>()) in create() 494 return new (Func->allocate<InstX86Jmp>()) InstX86Jmp(Func, Target); in create() 516 return new (Func->allocate<InstX86Cal in create() [all...] |
H A D | IceInst.h | 294 return new (Func->allocate<InstAlloca>()) 330 return new (Func->allocate<InstArithmetic>()) 364 return new (Func->allocate<InstAssign>()) InstAssign(Func, Dest, Source); in create() 387 return new (Func->allocate<InstBr>()) in create() 392 return new (Func->allocate<InstBr>()) InstBr(Func, Target); in create() 438 return new (Func->allocate<InstCall>()) in create() 488 return new (Func->allocate<InstCast>()) in create() 511 return new (Func->allocate<InstExtractElement>()) in create() 543 return new (Func->allocate<InstFcmp>()) in create() 575 return new (Func->allocate<InstIcm in create() [all...] |
H A D | IceInstARM32.h | 108 return new (Func->allocate<OperandARM32Mem>()) in create() 116 return new (Func->allocate<OperandARM32Mem>()) in create() 174 return new (Func->allocate<OperandARM32ShAmtImm>()) in create() 255 return new (Func->allocate<OperandARM32FlexFpImm>()) in create() 285 return new (Func->allocate<OperandARM32FlexFpZero>()) in create() 311 return new (Func->allocate<OperandARM32FlexReg>()) in create() 349 return new (Func->allocate<StackVariable>()) StackVariable(Func, Ty, Index); in create() 558 return new (Func->allocate<InstARM32UnaryopGPR>()) in create() 599 return new (Func->allocate<InstARM32UnaryopFP>()) in create() 641 return new (Func->allocate<InstARM32UnaryopSignAwareF in create() [all...] |
H A D | IceInstMIPS32.h | 82 return new (Func->allocate<OperandMIPS32FCC>()) OperandMIPS32FCC(FCC); in create() 131 return new (Func->allocate<OperandMIPS32Mem>()) in create() 342 return new (Func->allocate<InstMIPS32Ret>()) in create() 364 return new (Func->allocate<InstMIPS32UnaryopGPR>()) in create() 410 return new (Func->allocate<InstMIPS32TwoAddrFPR>()) in create() 454 return new (Func->allocate<InstMIPS32TwoAddrGPR>()) in create() 501 return new (Func->allocate<InstMIPS32ThreeAddrFPR>()) in create() 550 return new (Func->allocate<InstMIPS32ThreeAddrGPR>()) in create() 597 return new (Func->allocate<InstMIPS32Load>()) in create() 686 return new (Func->allocate<InstMIPS32Stor in create() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | ResourceManager.cpp | 89 return mBufferNameSpace.allocate(); in createBuffer() 95 GLuint name = mProgramShaderNameSpace.allocate(); in createShader() 113 GLuint name = mProgramShaderNameSpace.allocate(); in createProgram() 123 return mTextureNameSpace.allocate(); in createTexture() 129 return mRenderbufferNameSpace.allocate(); in createRenderbuffer() 135 return mSamplerNameSpace.allocate(); in createSampler() 141 GLuint name = mFenceSyncNameSpace.allocate(); in createFenceSync()
|
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Memory.cpp | 36 #undef allocate macro 76 static void *allocate(size_t bytes, size_t alignment, bool clearToZero) in allocate() function 101 // TODO(b/140991626): Rename to allocate(). 104 return allocate(bytes, alignment, false); in allocateUninitialized() 109 return allocate(bytes, alignment, true); in allocateZero() 116 return allocate(bytes, alignment, !__has_feature(memory_sanitizer)); in allocateZeroOrPoison()
|
/third_party/glslang/glslang/Include/ |
H A D | PoolAlloc.h | 46 // allocate a large number of small requests for heap memory, with the 179 // Call allocate() to actually acquire memory. Returns nullptr if no memory 182 void* allocate(size_t numBytes); 241 size_t currentPageOffset; // next offset in top of inUseList to allocate from in initializeAllocation() 244 tAllocStack stack; // stack of where to allocate from, to partition pool in initializeAllocation() 292 pointer allocate(size_type n) { in allocate() function in glslang::pool_allocator 293 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); } in allocate() 294 pointer allocate(size_type n, const void*) { in allocate() function in glslang::pool_allocator 295 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); } in allocate() 301 return reinterpret_cast<pointer>(getAllocator().allocate( in _Charalloc() [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | property.hpp | 123 allocate(size_t n) { in allocate() function in clover::property_buffer 146 auto r = buf.allocate<T>(1); in operator =() 158 auto r = buf.allocate<T>(v.size()); in operator =() 170 auto r = buf.allocate<T *>(v.size()); in operator =() 183 auto r = buf.allocate<char>(v.size() + 1); in operator =()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | memory.h | 114 // allocate() allocates memory from the allocator. 117 virtual Allocation allocate(const Allocation::Request&) = 0; 119 // free() frees the memory returned by allocate(). 120 // The Allocation must have all fields equal to those returned by allocate(). 182 auto alloc = allocate(request); in create() 215 auto alloc = allocate(request); in make_unique_n() 227 auto alloc = allocate(request); in make_shared() 267 inline Allocation allocate(const Allocation::Request&) override; 300 Allocation TrackedAllocator::allocate(const Allocation::Request& request) { in allocate() function in marl::TrackedAllocator 307 return allocator->allocate(reques in allocate() 410 T* StlAllocator<T>::allocate(std::size_t n) { allocate() function in marl::StlAllocator [all...] |
/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgVariableManager.cpp | 114 Variable* VariableScope::allocate (const VariableType& type, Variable::Storage storage, const char* name) in allocate() function in rsg::VariableScope 160 ValueEntry* ValueScope::allocate (const Variable* variable) in allocate() function in rsg::ValueScope 237 Variable* VariableManager::allocate (const VariableType& type) in allocate() function in rsg::VariableManager 239 return allocate(type, Variable::STORAGE_LOCAL, m_nameAllocator.allocate().c_str()); in allocate() 242 Variable* VariableManager::allocate (const VariableType& type, Variable::Storage storage, const char* name) in allocate() function in rsg::VariableManager 249 Variable* variable = varScope.allocate(type, Variable::STORAGE_LOCAL, name); in allocate() 252 ValueEntry* valueEntry = valueScope.allocate(variable); in allocate() 361 // New value, allocate and update cache. in setValue() 362 ValueEntry* newEntry = curScope.allocate(variabl in setValue() [all...] |
/third_party/vk-gl-cts/framework/platform/null/ |
H A D | tcuNullRenderContext.cpp | 56 deUint32 allocate (void) in allocate() function in tcu::null::ObjectManager 508 return (GLuint)ctx->programs.allocate(); in glCreateProgram() 515 return (GLuint)ctx->shaders.allocate(); in glCreateShader() 541 textures[ndx] = ctx->textures.allocate(); in glGenTextures() 552 ids[ndx] = ctx->queries.allocate(); in glGenQueries() 563 buffers[ndx] = ctx->buffers.allocate(); in glGenBuffers() 574 renderbuffers[ndx] = ctx->renderbuffers.allocate(); in glGenRenderbuffers() 585 framebuffers[ndx] = ctx->framebuffers.allocate(); in glGenFramebuffers() 596 arrays[ndx] = ctx->vertexArrays.allocate(); in glGenVertexArrays() 607 samplers[ndx] = ctx->samplers.allocate(); in glGenSamplers() [all...] |
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkansc/ |
H A D | vulkan_json_parser.hpp | 68 void* allocate (T1 size) in allocate() function in vk_json_parser::GlobalMem 76 void* allocate (T1 count, T1 size) in allocate() function in vk_json_parser::GlobalMem 134 char *writePtr = (char *)s_globalMem.allocate(static_cast<deUint32>(_res.size()) + 1); in parse_char() 1019 p = s_globalMem.allocate(sizeof(VkDisplayPresentInfoKHR)); in parsePNextChain() 1025 p = s_globalMem.allocate(sizeof(VkValidationFeaturesEXT)); in parsePNextChain() 1031 p = s_globalMem.allocate(sizeof(VkApplicationParametersEXT)); in parsePNextChain() 1037 p = s_globalMem.allocate(sizeof(VkExportMemorySciBufInfoNV)); in parsePNextChain() 1043 p = s_globalMem.allocate(sizeof(VkImportMemorySciBufInfoNV)); in parsePNextChain() 1049 p = s_globalMem.allocate(sizeof(VkPhysicalDeviceExternalMemorySciBufFeaturesNV)); in parsePNextChain() 1055 p = s_globalMem.allocate(sizeo in parsePNextChain() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/ |
H A D | memory_test.cc | 542 MOCK_METHOD(value_type*, allocate, (size_t)); 554 EXPECT_CALL(mock, allocate(7)).WillRepeatedly(Return(&x)); in TEST() 557 EXPECT_EQ(&x, Traits::allocate(mock, 7)); in TEST() 558 static_cast<void>(Traits::allocate(mock, 7, static_cast<const void*>(&hint))); in TEST() 559 EXPECT_EQ(&x, Traits::allocate(mock, 7, static_cast<const void*>(&hint))); in TEST() 580 MOCK_METHOD(value_type*, allocate, (size_t)); 581 MOCK_METHOD(value_type*, allocate, (size_t, const void*)); 598 EXPECT_CALL(mock, allocate(7)).WillRepeatedly(Return(&x)); in TEST() 599 EXPECT_CALL(mock, allocate(13, &hint)).WillRepeatedly(Return(&y)); in TEST() 606 EXPECT_EQ(&x, Traits::allocate(moc in TEST() [all...] |
/third_party/node/deps/v8/src/strings/ |
H A D | string-stream.h | 27 virtual char* allocate(unsigned bytes) = 0; 39 char* allocate(unsigned bytes) override; 54 char* allocate(unsigned bytes) override; 70 char* allocate(unsigned bytes) override { 146 buffer_(allocator_->allocate(kInitialCapacity)) { in StringStream()
|
/third_party/skia/docs/examples/ |
H A D | Bitmap_drawsNothing.cpp | 9 for (bool allocate : { false, true} ) { in REG_FIDDLE() 11 allocate ? bitmap.allocPixels() : (void) 0 ; in REG_FIDDLE()
|
/third_party/skia/third_party/externals/swiftshader/src/System/Linux/ |
H A D | MemFd.hpp | 33 allocate(name, size); in LinuxMemFd() 53 bool allocate(const char *name, size_t size);
|