/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | ASTMetadataHLSL.cpp | 35 ASSERT(index < metadataList->size()); in PullGradient() 238 size_t i = mLoopsAndSwitches.size(); 387 MetadataList metadataList(callDag.size()); in CreateASTMetadataHLSL() 406 for (size_t i = 0; i < callDag.size(); i++) in CreateASTMetadataHLSL() 420 for (size_t i = 0; i < callDag.size(); i++) in CreateASTMetadataHLSL() 428 for (size_t i = callDag.size(); i-- > 0;) in CreateASTMetadataHLSL()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | TextureImpl.h | 52 const gl::Extents &size, 70 const gl::Extents &size, 168 const gl::Extents &size) = 0; 174 const gl::Extents &size, 181 const gl::Extents &size, 191 const gl::Extents &size, 215 // Override if accurate native memory size information is available
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
H A D | CSEMIRBuilder.cpp | 115 if (DstOps.size() == 1) in checkCopyToDefsPossible() 129 if (DstOps.size() == 1) { 158 assert(SrcOps.size() == 2 && "Invalid sources"); 159 assert(DstOps.size() == 1 && "Invalid dsts"); 166 assert(DstOps.size() == 1 && "Invalid dst ops"); 167 assert(SrcOps.size() == 2 && "Invalid src ops");
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
H A D | MachOUniversal.cpp | 72 ObjectData = ParentData.substr(Header.offset, Header.size); in getAsObjectFile() 75 ObjectData = ParentData.substr(Header64.offset, Header64.size); in getAsObjectFile() 92 ObjectData = ParentData.substr(Header.offset, Header.size); in getAsArchive() 94 ObjectData = ParentData.substr(Header64.offset, Header64.size); in getAsArchive() 122 // Check for magic value and sufficient header size. in MachOUniversalBinary() 141 if (Buf.size() < MinSize) { in MachOUniversalBinary() 151 if (bigSize > Buf.size()) { in MachOUniversalBinary() 152 Err = malformedError("offset plus size of cputype (" + in MachOUniversalBinary() 201 ") at offset " + Twine(A.getOffset()) + " with a size of " + in MachOUniversalBinary() 204 + ") at offset " + Twine(B.getOffset()) + " with a size o in MachOUniversalBinary() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | ViewportTest.cpp | 58 // Clear to green. Might be a scissored clear, if scissorSize != window size in runTest() 62 // Draw a red quad centered in the middle of the viewport, with dimensions 25% of the size in runTest() 263 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 274 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 304 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 313 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P() 338 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices[0]) * vertices.size(), vertices.data(), in TEST_P() 377 glDrawArrays(GL_LINES, 0, static_cast<GLsizei>(vertices.size())); in TEST_P()
|
/third_party/skia/src/core/ |
H A D | SkStrikeSpec.cpp | 50 // The factor to get from the size stored in the strike to the size needed for in MakePath() 71 // Scale the text size down so the long side of all the glyphs will fit in the atlas. in MakeSourceFallback() 82 // The scale factor to go from strike size to the source size for glyphs. in MakeSourceFallback() 152 SkStrikeSpec SkStrikeSpec::MakePDFVector(const SkTypeface& typeface, int* size) { in MakePDFVector() argument 161 if (size) { in MakePDFVector() 162 *size = unitsPerEm; in MakePDFVector() 234 fGlyphs.reset(glyphIDs.size()); in glyphs() 251 fGlyphs.reset(glyphIDs.size()); in glyphs() [all...] |
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DResourceProvider.cpp | 105 ID3D12Resource* bufferResource, size_t offset, size_t size) { in createConstantBufferView() 106 return fCpuDescriptorManager.createConstantBufferView(fGpu, bufferResource, offset, size); in createConstantBufferView() 266 D3D12_GPU_VIRTUAL_ADDRESS GrD3DResourceProvider::uploadConstantData(void* data, size_t size) { in uploadConstantData() argument 267 // constant size has to be aligned to 256 in uploadConstantData() 271 size_t paddedSize = SkAlignTo(size, kConstantAlignment); in uploadConstantData() 274 memcpy(destPtr, data, size); in uploadConstantData() 384 unsigned int numDescriptors = cpuDescriptors.size(); in findOrCreateDescTable() 104 createConstantBufferView( ID3D12Resource* bufferResource, size_t offset, size_t size) createConstantBufferView() argument
|
/third_party/openssl/crypto/txt_db/ |
H A D | txt_db.c | 25 int size = BUFSIZE; in TXT_DB_read() local 33 if (!BUF_MEM_grow(buf, size)) in TXT_DB_read() 53 buf->data[size - 1] = '\0'; in TXT_DB_read() 57 size += BUFSIZE; in TXT_DB_read() 58 if (!BUF_MEM_grow_clean(buf, size)) in TXT_DB_read() 62 BIO_gets(in, &(buf->data[offset]), size - offset); in TXT_DB_read()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | transformation_composite_construct.cpp | 146 if (array_type.length_info().words.size() != 2) { in ComponentsForArrayConstructionAreOK() 147 // We only handle the case where the array size can be captured in a single in ComponentsForArrayConstructionAreOK() 151 // Get the array size. in ComponentsForArrayConstructionAreOK() 153 if (static_cast<uint32_t>(message_.component().size()) != array_size) { in ComponentsForArrayConstructionAreOK() 154 // The number of components must match the array size. in ComponentsForArrayConstructionAreOK() 179 if (static_cast<uint32_t>(message_.component().size()) != in ComponentsForMatrixConstructionAreOK() 206 if (static_cast<uint32_t>(message_.component().size()) != in ComponentsForStructConstructionAreOK() 207 struct_type.element_types().size()) { in ComponentsForStructConstructionAreOK() 214 field_index < struct_type.element_types().size(); field_index++) { in ComponentsForStructConstructionAreOK()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | transformation_composite_construct.cpp | 146 if (array_type.length_info().words.size() != 2) { in ComponentsForArrayConstructionAreOK() 147 // We only handle the case where the array size can be captured in a single in ComponentsForArrayConstructionAreOK() 151 // Get the array size. in ComponentsForArrayConstructionAreOK() 153 if (static_cast<uint32_t>(message_.component().size()) != array_size) { in ComponentsForArrayConstructionAreOK() 154 // The number of components must match the array size. in ComponentsForArrayConstructionAreOK() 179 if (static_cast<uint32_t>(message_.component().size()) != in ComponentsForMatrixConstructionAreOK() 206 if (static_cast<uint32_t>(message_.component().size()) != in ComponentsForStructConstructionAreOK() 207 struct_type.element_types().size()) { in ComponentsForStructConstructionAreOK() 214 field_index < struct_type.element_types().size(); field_index++) { in ComponentsForStructConstructionAreOK()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | pngdec.c | 48 static png_voidp MallocFunc(png_structp png_ptr, LocalPngAllocSize size) { in MallocFunc() argument 50 if (size != (size_t)size) return NULL; in MallocFunc() 51 if (!ImgIoUtilCheckSizeArgumentsOverflow(size, 1)) return NULL; in MallocFunc() 52 return (png_voidp)malloc((size_t)size); in MallocFunc() 64 // 'expected_length' is the anticipated processed size. 126 payload->size = expected_length; in ProcessRawProfile()
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | lossless_enc_mips32.c | 348 uint32_t* pout, int size) { in AddVector_MIPS32() 350 const uint32_t end = ((size) / 4) * 4; in AddVector_MIPS32() 356 for (i = end; i < size; ++i) pout[i] = pa[i] + pb[i]; in AddVector_MIPS32() 359 static void AddVectorEq_MIPS32(const uint32_t* pa, uint32_t* pout, int size) { in AddVectorEq_MIPS32() argument 361 const uint32_t end = ((size) / 4) * 4; in AddVectorEq_MIPS32() 367 for (i = end; i < size; ++i) pout[i] += pa[i]; in AddVectorEq_MIPS32() 347 AddVector_MIPS32(const uint32_t* pa, const uint32_t* pb, uint32_t* pout, int size) AddVector_MIPS32() argument
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | picture_psnr_enc.c | 122 static double GetPSNR(double v, double size) { in GetPSNR() argument 123 return (v > 0. && size > 0.) ? -4.3429448 * log(v / (size * 255 * 255.)) in GetPSNR() 127 static double GetLogSSIM(double v, double size) { in GetLogSSIM() argument 128 v = (size > 0.) ? v / size : 1.; in GetLogSSIM()
|
H A D | token_enc.c | 69 const size_t size = sizeof(*page) + b->page_size_ * sizeof(token_t); in TBufferNewPage() local 70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage() 227 size_t size = 0; in VP8EstimateTokenSize() local 239 size += VP8BitCost(bit, token & 0xffu); in VP8EstimateTokenSize() 241 size += VP8BitCost(bit, probas[token & 0x3fffu]); in VP8EstimateTokenSize() 246 return size; in VP8EstimateTokenSize()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
H A D | MainActivity.java | 141 Point size = new Point(); in logScreenSize() 142 display.getSize(size); in logScreenSize() 143 int width = size.x; in logScreenSize() 144 int height = size.y; in logScreenSize() 145 Log.i(TestAudioActivity.TAG, "Screen size = " + size.x + " * " + size.y); in logScreenSize() 281 showErrorToast("Badly formated callback size: " + text); in updateCallbackSize()
|
/third_party/skia/src/sfnt/ |
H A D | SkOTUtils.cpp | 87 + (encodings.size() * names.size() * sizeof(SkOTTableName::Record)) in RenameFont() 94 //originalDataSize is the size of the original data without the name table. in RenameFont() 133 unsigned short stringOffset = sizeof(SkOTTableName) + (encodings.size() * names.size() * sizeof(SkOTTableName::Record)); in RenameFont() 135 nameTable->count = SkEndian_SwapBE16(encodings.size() * names.size()); in RenameFont()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | IndirectDrawValidationEncoder.cpp | 246 newBatch.dataSize = GetBatchDataSize(batch.draws.size()); in EncodeIndirectDrawValidationCommands() 251 newBatch.validatedParamsSize = batch.draws.size() * kDrawIndexedIndirectSize; in EncodeIndirectDrawValidationCommands() 307 batch.batchInfo->numDraws = static_cast<uint32_t>(batch.metadata->draws.size()); in EncodeIndirectDrawValidationCommands() 365 bufferDataBinding.size = batch.dataSize; in EncodeIndirectDrawValidationCommands() 367 clientIndirectBinding.size = batch.clientIndirectSize; in EncodeIndirectDrawValidationCommands() 369 validatedParamsBinding.size = batch.validatedParamsSize; in EncodeIndirectDrawValidationCommands()
|
H A D | PassResourceUsageTracker.cpp | 152 result.buffers.reserve(mBufferUsages.size()); in AcquireSyncScopeUsage() 153 result.bufferUsages.reserve(mBufferUsages.size()); in AcquireSyncScopeUsage() 154 result.textures.reserve(mTextureUsages.size()); in AcquireSyncScopeUsage() 155 result.textureUsages.reserve(mTextureUsages.size()); in AcquireSyncScopeUsage() 233 result.querySets.reserve(mQueryAvailabilities.size()); in AcquireResourceUsage() 234 result.queryAvailabilities.reserve(mQueryAvailabilities.size()); in AcquireResourceUsage()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | RenderPassLoadOpTests.cpp | 61 descriptor.size.width = kRTSize; 62 descriptor.size.height = kRTSize; 63 descriptor.size.depthOrArrayLayers = 1; 108 textureDescriptor.size = kTextureSize; in TestIntegerClearColor() 120 const uint64_t bufferSize = sizeof(T) * expectedPixelValue.size(); in TestIntegerClearColor() 122 bufferDescriptor.size = bufferSize; in TestIntegerClearColor()
|
/third_party/skia/third_party/externals/angle2/util/ |
H A D | shader_utils.cpp | 161 glGetShaderInfoLog(shader, static_cast<GLsizei>(infoLog.size()), nullptr, &infoLog[0]); in CompileShader() 209 glGetProgramInfoLog(program, static_cast<GLsizei>(infoLog.size()), nullptr, in CheckLinkStatusAndReturnProgram() 253 if (transformFeedbackVaryings.size() > 0) in CompileProgramWithTransformFeedback() 263 static_cast<GLsizei>(transformFeedbackVaryings.size()), in CompileProgramWithTransformFeedback() 336 glProgramBinaryOES(program, binaryFormat, binary.data(), static_cast<GLint>(binary.size())); in LoadBinaryProgramOES() 343 glProgramBinary(program, binaryFormat, binary.data(), static_cast<GLint>(binary.size())); in LoadBinaryProgramES3()
|
/third_party/openssl/crypto/asn1/ |
H A D | tasn_new.c | 112 memset(*pval, 0, it->size); in asn1_item_embed_new() 114 *pval = OPENSSL_zalloc(it->size); in asn1_item_embed_new() 134 memset(*pval, 0, it->size); in asn1_item_embed_new() 136 *pval = OPENSSL_zalloc(it->size); in asn1_item_embed_new() 293 *(ASN1_BOOLEAN *)pval = it->size; in asn1_primitive_new() 345 *(ASN1_BOOLEAN *)pval = it->size; in asn1_primitive_clear()
|
/third_party/openssl/crypto/bio/ |
H A D | bss_file.c | 36 static int file_read(BIO *h, char *buf, int size); 38 static int file_gets(BIO *h, char *str, int size); 347 static int file_gets(BIO *bp, char *buf, int size) in file_gets() argument 353 if (!UP_fgets(buf, size, bp->ptr)) in file_gets() 356 if (!fgets(buf, size, (FILE *)bp->ptr)) in file_gets() 388 static int file_gets(BIO *bp, char *buf, int size) in file_gets() argument
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
H A D | GCNILPSched.cpp | 88 assert(SU->NodeNum < SUNumbers.size()); in getNodePriority() 296 SUSavedCopy.resize(SUnits.size()); in schedule() 303 SUNumbers.assign(SUnits.size(), 0); in schedule() 314 Schedule.reserve(SUnits.size()); in schedule() 346 assert(SUnits.size() == Schedule.size()); in schedule()
|
H A D | R600EmitClauseMarkers.cpp | 142 for (unsigned i = 0, n = Consts.size(); i < n; ++i) { in SubstituteKCacheBank() 158 if (CachedConsts.size() == 1) { in SubstituteKCacheBank() 173 for (unsigned i = 0, j = 0, n = Consts.size(); i < n; ++i) { in SubstituteKCacheBank() 299 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].first) // KB1 in MakeALUClause() 301 .addImm((KCacheBanks.size() < 2)?0:2) // KM1 in MakeALUClause() 303 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].second) // KLINE1 in MakeALUClause()
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
H A D | tint_common_fuzzer.cc | 87 return tools.Validate(spirv.data(), spirv.size(), in SPIRVToolsValidationCheck() 114 int CommonFuzzer::Run(const uint8_t* data, size_t size) { in Run() argument 120 std::vector<uint32_t> spirv_input(size / sizeof(uint32_t)); in Run() 130 static_cast<std::streamsize>(size)); in Run() 141 std::string str(reinterpret_cast<const char*>(data), size); in Run() local 152 // `spirv_input` has been initialized with the capacity to store `size / in Run() 153 // sizeof(uint32_t)` uint32_t values. If `size` is not a multiple of in Run() 157 spirv_input.size() * sizeof(uint32_t)); in Run()
|