/third_party/skia/src/core/ |
D | SkTSearch.h | 39 int SkTSearch(const T base[], int count, const K& key, size_t elemSize, const LESS& less) in SkTSearch() argument 53 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch() 61 const T* elem = (const T*)((const char*)base + hi * elemSize); in SkTSearch() 73 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 74 return SkTSearch(base, count, target, elemSize, in SkTSearch() 80 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 81 return SkTSearch(base, count, target, elemSize, [](const T& a, const T& b) { return a < b; }); in SkTSearch() 87 int SkTSearch(T* base[], int count, T* target, size_t elemSize) { in SkTSearch() argument 88 return SkTSearch(base, count, target, elemSize, in SkTSearch() 93 size_t target_len, size_t elemSize); [all …]
|
D | SkTSearch.cpp | 16 size_t elemSize) in index_into_base() argument 18 return *(const char*const*)((const char*)base + index * elemSize); in index_into_base() 22 size_t target_len, size_t elemSize) in SkStrSearch() argument 35 const char* elem = index_into_base(base, mid, elemSize); in SkStrSearch() 46 const char* elem = index_into_base(base, hi, elemSize); in SkStrSearch() 58 size_t elemSize) in SkStrSearch() argument 60 return SkStrSearch(base, count, target, strlen(target), elemSize); in SkStrSearch() 64 size_t len, size_t elemSize) in SkStrLCSearch() argument 70 return SkStrSearch(base, count, tolc.lc(), len, elemSize); in SkStrLCSearch() 74 size_t elemSize) in SkStrLCSearch() argument [all …]
|
D | SkMalloc.cpp | 8 void* sk_calloc_throw(size_t count, size_t elemSize) { in sk_calloc_throw() argument 9 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw() 12 void* sk_malloc_throw(size_t count, size_t elemSize) { in sk_malloc_throw() argument 13 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw() 16 void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize) { in sk_realloc_throw() argument 17 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw() 20 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() argument 21 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
|
D | SkDataTable.cpp | 25 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count, in SkDataTable() argument 30 fElemSize = elemSize; // non-zero signals we use fElems instead of fDir in SkDataTable() 113 sk_sp<SkDataTable> SkDataTable::MakeCopyArray(const void* array, size_t elemSize, int count) { in MakeCopyArray() argument 118 size_t bufferSize = elemSize * count; in MakeCopyArray() 122 return sk_sp<SkDataTable>(new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer)); in MakeCopyArray() 125 sk_sp<SkDataTable> SkDataTable::MakeArrayProc(const void* array, size_t elemSize, int count, in MakeArrayProc() argument 130 return sk_sp<SkDataTable>(new SkDataTable(array, elemSize, count, proc, ctx)); in MakeArrayProc()
|
D | SkDeque.cpp | 28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 29 : fElemSize(elemSize) in SkDeque() 38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 39 : fElemSize(elemSize) in SkDeque() 46 if (storageSize >= sizeof(Block) + elemSize) { in SkDeque()
|
/third_party/flutter/skia/src/core/ |
D | SkTSearch.h | 39 int SkTSearch(const T base[], int count, const K& key, size_t elemSize, LESS& less) in SkTSearch() argument 53 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch() 61 const T* elem = (const T*)((const char*)base + hi * elemSize); in SkTSearch() 78 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 80 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 90 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 92 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 103 int SkTSearch(T* base[], int count, T* target, size_t elemSize) { in SkTSearch() argument 105 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 109 size_t target_len, size_t elemSize); [all …]
|
D | SkTSearch.cpp | 16 size_t elemSize) in index_into_base() argument 18 return *(const char*const*)((const char*)base + index * elemSize); in index_into_base() 22 size_t target_len, size_t elemSize) in SkStrSearch() argument 35 const char* elem = index_into_base(base, mid, elemSize); in SkStrSearch() 46 const char* elem = index_into_base(base, hi, elemSize); in SkStrSearch() 58 size_t elemSize) in SkStrSearch() argument 60 return SkStrSearch(base, count, target, strlen(target), elemSize); in SkStrSearch() 64 size_t len, size_t elemSize) in SkStrLCSearch() argument 70 return SkStrSearch(base, count, tolc.lc(), len, elemSize); in SkStrLCSearch() 74 size_t elemSize) in SkStrLCSearch() argument [all …]
|
D | SkMallocPixelRef.cpp | 15 void* sk_calloc_throw(size_t count, size_t elemSize) { in sk_calloc_throw() argument 16 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw() 19 void* sk_malloc_throw(size_t count, size_t elemSize) { in sk_malloc_throw() argument 20 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw() 23 void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize) { in sk_realloc_throw() argument 24 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw() 27 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() argument 28 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
|
D | SkDataTable.cpp | 25 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count, in SkDataTable() argument 30 fElemSize = elemSize; // non-zero signals we use fElems instead of fDir in SkDataTable() 113 sk_sp<SkDataTable> SkDataTable::MakeCopyArray(const void* array, size_t elemSize, int count) { in MakeCopyArray() argument 118 size_t bufferSize = elemSize * count; in MakeCopyArray() 122 return sk_sp<SkDataTable>(new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer)); in MakeCopyArray() 125 sk_sp<SkDataTable> SkDataTable::MakeArrayProc(const void* array, size_t elemSize, int count, in MakeArrayProc() argument 130 return sk_sp<SkDataTable>(new SkDataTable(array, elemSize, count, proc, ctx)); in MakeArrayProc()
|
D | SkDeque.cpp | 28 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 29 : fElemSize(elemSize) in SkDeque() 38 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 39 : fElemSize(elemSize) in SkDeque() 46 if (storageSize >= sizeof(Block) + elemSize) { in SkDeque()
|
/third_party/flutter/skia/include/private/ |
D | SkMalloc.h | 78 SK_API extern void* sk_calloc_throw(size_t count, size_t elemSize); 79 SK_API extern void* sk_malloc_throw(size_t count, size_t elemSize); 80 SK_API extern void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize); 95 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
|
/third_party/skia/include/private/ |
D | SkMalloc.h | 77 SK_API extern void* sk_calloc_throw(size_t count, size_t elemSize); 78 SK_API extern void* sk_malloc_throw(size_t count, size_t elemSize); 79 SK_API extern void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize); 93 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
|
D | SkDeque.h | 32 explicit SkDeque(size_t elemSize, int allocCount = 1); 33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 38 size_t elemSize() const { return fElemSize; } in elemSize() function
|
/third_party/flutter/skia/include/core/ |
D | SkDataTable.h | 87 static sk_sp<SkDataTable> MakeCopyArray(const void* array, size_t elemSize, int count); 89 static sk_sp<SkDataTable> MakeArrayProc(const void* array, size_t elemSize, int count, 109 SkDataTable(const void* array, size_t elemSize, int count,
|
D | SkDeque.h | 32 explicit SkDeque(size_t elemSize, int allocCount = 1); 33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 38 size_t elemSize() const { return fElemSize; } in elemSize() function
|
/third_party/skia/include/core/ |
D | SkDataTable.h | 86 static sk_sp<SkDataTable> MakeCopyArray(const void* array, size_t elemSize, int count); 88 static sk_sp<SkDataTable> MakeArrayProc(const void* array, size_t elemSize, int count, 108 SkDataTable(const void* array, size_t elemSize, int count,
|
/third_party/skia/src/xml/ |
D | SkDOMParser.cpp | 92 void SkDOMParser::startCommon(const char elem[], size_t elemSize, SkDOM::Type type) { in startCommon() argument 97 fElemName = dupstr(fAlloc, elem, elemSize); in startCommon()
|
D | SkDOMParser.h | 33 void startCommon(const char elem[], size_t elemSize, SkDOM::Type type);
|
/third_party/skia/tests/ |
D | DequeTest.cpp | 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count() 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
|
/third_party/flutter/skia/tests/ |
D | DequeTest.cpp | 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count() 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | dePoolArray.hpp | 379 deUintptr elemSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in getPtr() local 380 T* ptr = (T*)((deUint8*)m_pageTable[pageNdx] + (subNdx*elemSize)); in getPtr()
|
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/ |
D | ReactorUnitTests.cpp | 3015 constexpr auto elemSize = sizeof(buffer[0]); in TEST() local 3018 1 * elemSize, in TEST() 3019 6 * elemSize, in TEST() 3020 11 * elemSize, in TEST() 3021 13 * elemSize in TEST() 3058 constexpr auto elemSize = sizeof(buffer[0]); in TEST() local 3061 1 * elemSize, in TEST() 3062 6 * elemSize, in TEST() 3063 11 * elemSize, in TEST() 3064 13 * elemSize in TEST()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateComputeTests.cpp | 866 const auto elemSize = static_cast<VkDeviceSize>(sizeof(decltype(srcValues)::value_type)); in iterateTransfer() local 886 const auto offset = elemSize * stateIdx; in iterateTransfer() 896 const VkBufferCopy region = { offset, offset, elemSize }; in iterateTransfer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/ |
D | vktDynamicStateComputeTests.cpp | 866 const auto elemSize = static_cast<VkDeviceSize>(sizeof(decltype(srcValues)::value_type)); in iterateTransfer() local 886 const auto offset = elemSize * stateIdx; in iterateTransfer() 896 const VkBufferCopy region = { offset, offset, elemSize }; in iterateTransfer()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | validationCL.cpp | 2723 const size_t elemSize = GetElementSize(*image_format); in ValidateCreateImage() local 2724 if (elemSize == 0u) in ValidateCreateImage() 2731 : image_desc->image_width * elemSize; in ValidateCreateImage() 2789 if (image_desc->image_row_pitch < image_desc->image_width * elemSize) in ValidateCreateImage() 2794 if ((image_desc->image_row_pitch % elemSize) != 0u) in ValidateCreateImage()
|