Home
last modified time | relevance | path

Searched refs:GetSize (Results 1 – 25 of 251) sorted by relevance

1234567891011

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DRenderEncoderBase.cpp167 indirectOffset >= indirectBuffer->GetSize() || in APIDrawIndirect()
168 kDrawIndirectSize > indirectBuffer->GetSize() - indirectOffset, in APIDrawIndirect()
170 indirectOffset, indirectBuffer, indirectBuffer->GetSize()); in APIDrawIndirect()
198 (indirectOffset >= indirectBuffer->GetSize() || in APIDrawIndexedIndirect()
199 kDrawIndexedIndirectSize > indirectBuffer->GetSize() - indirectOffset), in APIDrawIndexedIndirect()
201 indirectOffset, indirectBuffer, indirectBuffer->GetSize()); in APIDrawIndexedIndirect()
288 uint64_t bufferSize = buffer->GetSize(); in APISetIndexBuffer()
306 DAWN_ASSERT(buffer->GetSize() >= offset); in APISetIndexBuffer()
307 size = buffer->GetSize() - offset; in APISetIndexBuffer()
345 uint64_t bufferSize = buffer->GetSize(); in APISetVertexBuffer()
[all …]
DProgrammableEncoder.cpp163 ASSERT(bufferBinding.buffer->GetSize() >= bufferBinding.size); in ValidateSetBindGroup()
164 ASSERT(bufferBinding.buffer->GetSize() - bufferBinding.size >= bufferBinding.offset); in ValidateSetBindGroup()
167 bufferBinding.buffer->GetSize() - bufferBinding.offset - bufferBinding.size)) { in ValidateSetBindGroup()
169 (bufferBinding.buffer->GetSize() - bufferBinding.offset) == bufferBinding.size, in ValidateSetBindGroup()
175 bufferBinding.buffer->GetSize(), bufferBinding.offset, bufferBinding.size); in ValidateSetBindGroup()
181 bufferBinding.buffer->GetSize(), bufferBinding.offset, bufferBinding.size); in ValidateSetBindGroup()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dinlined_vector.h247 GetData(), GetSize()); in ~ConstructionTransaction()
256 SizeType& GetSize() { return size_; } in GetSize() function
264 GetSize() = size; in Construct()
268 GetSize() = 0; in Commit()
351 size_type GetSize() const { return GetSizeAndIsAllocated() >> 1; } in GetSize() function
379 ? StorageView{GetAllocatedData(), GetSize(), in MakeStorageView()
381 : StorageView{GetInlinedData(), GetSize(), GetInlinedCapacity()}; in MakeStorageView()
448 assert(count <= GetSize()); in SubtractSize()
509 inlined_vector_internal::DestroyElements(GetAllocPtr(), data, GetSize()); in DestroyContents()
515 const auto n = other.GetSize(); in InitFrom()
[all …]
/third_party/flutter/engine/flutter/fml/
Dmapping.h27 virtual size_t GetSize() const = 0;
63 size_t GetSize() const override;
92 size_t GetSize() const override;
113 size_t GetSize() const override;
134 size_t GetSize() const override;
Dicu_util.cc62 if (file_mapping->GetSize() != 0) { in SetupMapping()
71 if (GetSize() == 0) { in SetupICU()
84 size_t GetSize() const { return mapping_ ? mapping_->GetSize() : 0; } in GetSize() function in fml::icu::ICUContext
Dfile_unittest.cc21 if (mapping.GetSize() != contents.size()) { in WriteStringToFile()
41 mapping.GetSize()}; in ReadStringFromFile()
84 ASSERT_EQ(mapping.GetSize(), contents.size()); in TEST()
96 ASSERT_EQ(mapping.GetSize(), contents.size()); in TEST()
167 ASSERT_EQ(mapping.GetSize(), 0ul); in TEST()
Dmapping.cc72 size_t DataMapping::GetSize() const { in GetSize() function in fml::DataMapping
93 size_t NonOwnedMapping::GetSize() const { in GetSize() function in fml::NonOwnedMapping
126 size_t SymbolMapping::GetSize() const { in GetSize() function in fml::SymbolMapping
/third_party/cef/tests/ceftests/
Dosr_accessibility_unittest.cc272 return updates->GetSize(); in GetUpdateListSize()
281 EXPECT_LT(index, updates->GetSize()); in GetUpdateValue()
299 return events->GetSize(); in GetEventListSize()
308 EXPECT_LT(index, events->GetSize()); in GetEventValue()
361 EXPECT_GT(nodes->GetSize(), 0U); in TestEnableAccessibilityUpdate()
365 for (size_t index = 0; index < nodes->GetSize(); index++) { in TestEnableAccessibilityUpdate()
377 EXPECT_EQ(1U, childIDs->GetSize()); in TestEnableAccessibilityUpdate()
392 EXPECT_GT(nodes->GetSize(), 0U); in SetEditBoxIdAndRect()
395 for (size_t index = 0; index < nodes->GetSize(); index++) { in SetEditBoxIdAndRect()
Dvalues_unittest.cc48 EXPECT_EQ(data_size, value->GetSize()); in TestBinary()
173 EXPECT_EQ(1U, dictionary_value->GetSize()); in TestDictionaryDictionary()
184 EXPECT_EQ(1U, dictionary_value->GetSize()); in TestDictionaryDictionary()
197 EXPECT_EQ(1U, list_value->GetSize()); in TestDictionaryList()
208 EXPECT_EQ(1U, list_value->GetSize()); in TestDictionaryList()
221 EXPECT_EQ(0U, value->GetSize()); in TestDictionary()
233 EXPECT_EQ(8U, value->GetSize()); in TestDictionary()
268 EXPECT_EQ(0U, value->GetSize()); in TestDictionary()
276 EXPECT_EQ(3U, value->GetSize()); in TestDictionary()
280 EXPECT_EQ(0U, value->GetSize()); in TestDictionary()
[all …]
Dtest_util.cc151 size_t data_size = val1->GetSize(); in TestBinaryEqual()
152 EXPECT_EQ(data_size, val2->GetSize()); in TestBinaryEqual()
178 EXPECT_EQ(val1->GetSize(), val2->GetSize()); in TestDictionaryEqual()
225 size_t size = val1->GetSize(); in TestListEqual()
226 EXPECT_EQ(size, val2->GetSize()); in TestListEqual()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.cpp225 mBackingData = std::unique_ptr<uint8_t[]>(new uint8_t[GetSize()]); in Buffer()
230 ToBackend(GetDevice())->DecrementMemoryUsage(GetSize()); in ~Buffer()
246 CallMapWriteCallback(serial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, ptr, GetSize()); in MapOperationCompleted()
248 CallMapReadCallback(serial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, ptr, GetSize()); in MapOperationCompleted()
261 ASSERT(start + count <= GetSize()); in SetSubDataImpl()
366 mDevice->DecrementMemoryUsage(GetSize()); in ~StagingBuffer()
371 DAWN_TRY(mDevice->IncrementMemoryUsage(GetSize())); in Initialize()
372 mBuffer = std::make_unique<uint8_t[]>(GetSize()); in Initialize()
/third_party/flutter/engine/flutter/fml/platform/posix/
Dfile_posix.cc194 if (!TruncateFile(temp_file, data.GetSize())) { in WriteAtomically()
200 data.GetSize() != mapping.GetSize()) { in WriteAtomically()
204 ::memcpy(mapping.GetMutableMapping(), data.GetMapping(), data.GetSize()); in WriteAtomically()
206 if (::msync(mapping.GetMutableMapping(), data.GetSize(), MS_SYNC) != 0) { in WriteAtomically()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBufferD3D12.cpp118 return Align(GetSize(), 256); in GetD3D12Size()
200 CallMapWriteCallback(mapSerial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, data, GetSize()); in OnMapCommandSerialFinished()
202 CallMapReadCallback(mapSerial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, data, GetSize()); in OnMapCommandSerialFinished()
212 mWrittenMappedRange = {0, GetSize()}; in MapAtCreationImpl()
220 D3D12_RANGE readRange = {0, GetSize()}; in MapReadAsyncImpl()
231 mWrittenMappedRange = {0, GetSize()}; in MapWriteAsyncImpl()
/third_party/flutter/engine/flutter/fml/platform/win/
Dfile_win.cc350 if (!TruncateFile(temp_file, mapping.GetSize())) { in WriteAtomically()
359 if (temp_file_mapping.GetSize() != mapping.GetSize()) { in WriteAtomically()
361 << temp_file_mapping.GetSize() << ". Should be " in WriteAtomically()
362 << mapping.GetSize() << "."; in WriteAtomically()
372 mapping.GetSize()); in WriteAtomically()
375 mapping.GetSize())) { in WriteAtomically()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dmove_to_front.h88 size_t GetSize() const { in GetSize() function
316 const size_t old_size = GetSize(); in Insert()
322 assert(old_size + 1 == GetSize()); in Insert()
346 const size_t old_size = GetSize(); in RankFromValue()
370 assert(old_size == GetSize() + 1); in RankFromValue()
373 assert(old_size == GetSize()); in RankFromValue()
379 const size_t old_size = GetSize(); in ValueFromRank()
390 assert(old_size == GetSize() + 1); in ValueFromRank()
393 assert(old_size == GetSize()); in ValueFromRank()
/third_party/googletest/googlemock/test/
Dgmock-function-mocker_test.cc541 virtual int GetSize() const = 0;
553 MOCK_METHOD(int, GetSize, (), (const, override));
571 MOCK_CONST_METHOD0_T(GetSize, int()); // NOLINT
592 EXPECT_CALL(mock, GetSize()) in TYPED_TEST()
603 EXPECT_EQ(0, mock.GetSize()); in TYPED_TEST()
605 EXPECT_EQ(1, mock.GetSize()); in TYPED_TEST()
608 EXPECT_EQ(0, mock.GetSize()); in TYPED_TEST()
635 STDMETHOD_(int, GetSize)() const = 0;
648 MOCK_METHOD(int, GetSize, (), (Calltype(STDMETHODCALLTYPE), override, const));
663 MOCK_CONST_METHOD0_T_WITH_CALLTYPE(STDMETHODCALLTYPE, GetSize, int());
[all …]
/third_party/mindspore/patches/
D0011-replace-memcpy-with-memcpy_s-in-mindir.patch53 - memcpy(buff, fbb.GetBufferPointer(), fbb.GetSize());
54 + auto ret = memcpy_s(buff, fbb.GetSize(), fbb.GetBufferPointer(), fbb.GetSize());
125 - memcpy(buff, fbb.GetBufferPointer(), fbb.GetSize());
126 + auto ret = memcpy_s(buff, fbb.GetSize(), fbb.GetBufferPointer(), fbb.GetSize());
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DBufferGL.cpp27 device->gl.BufferData(GL_ARRAY_BUFFER, GetSize(), nullptr, GL_STATIC_DRAW); in Buffer()
68 CallMapReadCallback(serial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, data, GetSize()); in MapReadAsyncImpl()
78 CallMapWriteCallback(serial, DAWN_BUFFER_MAP_ASYNC_STATUS_SUCCESS, data, GetSize()); in MapWriteAsyncImpl()
/third_party/flutter/engine/flutter/shell/platform/embedder/tests/
Dembedder_config_builder.cc86 project_args_.vm_snapshot_data_size = mapping->GetSize(); in SetSnapshots()
91 project_args_.vm_snapshot_instructions_size = mapping->GetSize(); in SetSnapshots()
96 project_args_.isolate_snapshot_data_size = mapping->GetSize(); in SetSnapshots()
101 project_args_.isolate_snapshot_instructions_size = mapping->GetSize(); in SetSnapshots()
/third_party/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.cpp294 mBackingData = std::unique_ptr<uint8_t[]>(new uint8_t[GetSize()]); in Buffer()
295 mAllocatedSize = GetSize(); in Buffer()
317 ASSERT(bufferOffset + size <= GetSize()); in DoWriteBuffer()
335 ToBackend(GetDevice())->DecrementMemoryUsage(GetSize()); in DestroyImpl()
492 mDevice->DecrementMemoryUsage(GetSize()); in ~StagingBuffer()
497 DAWN_TRY(mDevice->IncrementMemoryUsage(GetSize())); in Initialize()
498 mBuffer = std::make_unique<uint8_t[]>(GetSize()); in Initialize()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DProgrammablePassEncoder.cpp114 DAWN_ASSERT(bufferBinding.buffer->GetSize() >= bufferBinding.size); in SetBindGroup()
115 DAWN_ASSERT(bufferBinding.buffer->GetSize() - bufferBinding.size >= in SetBindGroup()
119 bufferBinding.buffer->GetSize() - bufferBinding.offset - bufferBinding.size) { in SetBindGroup()
DRenderPassEncoder.cpp84 if (indirectOffset >= indirectBuffer->GetSize() || in DrawIndirect()
85 indirectOffset + kDrawIndirectSize > indirectBuffer->GetSize()) { in DrawIndirect()
102 if (indirectOffset >= indirectBuffer->GetSize() || in DrawIndexedIndirect()
103 indirectOffset + kDrawIndexedIndirectSize > indirectBuffer->GetSize()) { in DrawIndexedIndirect()
DBuffer.cpp142 uint64_t BufferBase::GetSize() const { in GetSize() function in dawn_native::BufferBase
170 DAWN_TRY_ASSIGN(mStagingBuffer, uploader->CreateStagingBuffer(GetSize())); in MapAtCreation()
310 DAWN_TRY(GetDevice()->CopyFromStagingToBuffer(mStagingBuffer.get(), 0, this, 0, GetSize())); in CopyFromStagingBuffer()
359 if (count > GetSize()) { in ValidateSetSubData()
374 if (start > GetSize() - count) { in ValidateSetSubData()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResidencyManagerD3D12.cpp41 uint64_t size = pageable->GetSize(); in LockAllocation()
221 sizeEvicted += pageable->GetSize(); in EnsureCanMakeResident()
262 localSizeToMakeResident += heap->GetSize(); in EnsureHeapsAreResident()
265 nonLocalSizeToMakeResident += heap->GetSize(); in EnsureHeapsAreResident()
/third_party/cef/tests/ceftests/views/
Dpanel_unittest.cc666 EXPECT_EQ(CefSize(200, 200), panel->GetSize()); in SizeNoDelegateImpl()
675 EXPECT_EQ(CefSize(200, 200), panel->GetSize()); in SizeNoDelegateImpl()
681 EXPECT_EQ(CefSize(400, 400), panel->GetSize()); in SizeNoDelegateImpl()
788 EXPECT_EQ(expected_size, panel->GetSize()); in FillLayoutSizeToPreferredSizeImpl()
820 EXPECT_EQ(expected_size, panel_parent->GetSize()); in FillLayoutSizeHierarchyImpl()
821 EXPECT_EQ(expected_size, panel_child->GetSize()); in FillLayoutSizeHierarchyImpl()
831 EXPECT_EQ(expected_size2, panel_parent->GetSize()); in FillLayoutSizeHierarchyImpl()
832 EXPECT_EQ(expected_size2, panel_child->GetSize()); in FillLayoutSizeHierarchyImpl()
886 EXPECT_EQ(expected_size, panel_parent->GetSize()); in FillLayoutSizeHierarchyWithDelegate()
887 EXPECT_EQ(expected_size, panel_child->GetSize()); in FillLayoutSizeHierarchyWithDelegate()
[all …]

1234567891011