/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | PBOExtensionTest.cpp | 91 unsigned char *dataPtr = static_cast<unsigned char *>(mappedPtr); in TEST_P() local 94 EXPECT_EQ(255, dataPtr[0]); in TEST_P() 95 EXPECT_EQ(0, dataPtr[1]); in TEST_P() 96 EXPECT_EQ(0, dataPtr[2]); in TEST_P() 97 EXPECT_EQ(255, dataPtr[3]); in TEST_P() 125 unsigned char *dataPtr = static_cast<unsigned char *>(mappedPtr); in TEST_P() local 129 EXPECT_EQ(255, dataPtr[0]); in TEST_P() 130 EXPECT_EQ(0, dataPtr[1]); in TEST_P() 131 EXPECT_EQ(0, dataPtr[2]); in TEST_P() 132 EXPECT_EQ(255, dataPtr[3]); in TEST_P() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | PBOExtensionTest.cpp | 91 unsigned char *dataPtr = static_cast<unsigned char *>(mappedPtr); in TEST_P() local 94 EXPECT_EQ(255, dataPtr[0]); in TEST_P() 95 EXPECT_EQ(0, dataPtr[1]); in TEST_P() 96 EXPECT_EQ(0, dataPtr[2]); in TEST_P() 97 EXPECT_EQ(255, dataPtr[3]); in TEST_P() 125 unsigned char *dataPtr = static_cast<unsigned char *>(mappedPtr); in TEST_P() local 129 EXPECT_EQ(255, dataPtr[0]); in TEST_P() 130 EXPECT_EQ(0, dataPtr[1]); in TEST_P() 131 EXPECT_EQ(0, dataPtr[2]); in TEST_P() 132 EXPECT_EQ(255, dataPtr[3]); in TEST_P() [all …]
|
/third_party/flutter/skia/src/ports/ |
D | SkOSFile_win.cpp | 228 static bool get_the_file(HANDLE handle, SkString* name, WIN32_FIND_DATAW* dataPtr, bool getDir) { in get_the_file() argument 231 if (nullptr == dataPtr) { in get_the_file() 233 dataPtr = &data; in get_the_file() 240 if ((dataPtr->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && in get_the_file() 241 !is_magic_dir((uint16_t*)dataPtr->cFileName)) in get_the_file() 246 if (!(dataPtr->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { in get_the_file() 250 if (!::FindNextFileW(handle, dataPtr)) { in get_the_file() 256 const uint16_t* utf16name = (const uint16_t*)dataPtr->cFileName; in get_the_file() 267 WIN32_FIND_DATAW* dataPtr = nullptr; in next() local 276 dataPtr = &data; in next() [all …]
|
D | SkFontHost_mac.cpp | 1919 char* dataPtr = dataStart; in onOpenStream() local 1932 SkSFNTHeader* header = (SkSFNTHeader*)dataPtr; in onOpenStream() 1938 dataPtr += sizeof(SkSFNTHeader); in onOpenStream() 1941 SkSFNTHeader::TableDirectoryEntry* entry = (SkSFNTHeader::TableDirectoryEntry*)dataPtr; in onOpenStream() 1942 dataPtr += sizeof(SkSFNTHeader::TableDirectoryEntry) * numTables; in onOpenStream() 1945 this->getTableData(tableTags[tableIndex], 0, tableSize, dataPtr); in onOpenStream() 1947 entry->checksum = SkEndian_SwapBE32(SkOTUtils::CalcTableChecksum((SK_OT_ULONG*)dataPtr, in onOpenStream() 1949 entry->offset = SkEndian_SwapBE32(SkToU32(dataPtr - dataStart)); in onOpenStream() 1952 dataPtr += (tableSize + 3) & ~3; in onOpenStream()
|
/third_party/skia/src/ports/ |
D | SkOSFile_win.cpp | 228 static bool get_the_file(HANDLE handle, SkString* name, WIN32_FIND_DATAW* dataPtr, bool getDir) { in get_the_file() argument 231 if (nullptr == dataPtr) { in get_the_file() 233 dataPtr = &data; in get_the_file() 240 if ((dataPtr->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && in get_the_file() 241 !is_magic_dir((uint16_t*)dataPtr->cFileName)) in get_the_file() 246 if (!(dataPtr->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { in get_the_file() 250 if (!::FindNextFileW(handle, dataPtr)) { in get_the_file() 256 const uint16_t* utf16name = (const uint16_t*)dataPtr->cFileName; in get_the_file() 267 WIN32_FIND_DATAW* dataPtr = nullptr; in next() local 276 dataPtr = &data; in next() [all …]
|
D | SkTypeface_mac_ct.cpp | 738 char* dataPtr = dataStart; in onOpenStream() local 751 SkSFNTHeader* header = (SkSFNTHeader*)dataPtr; in onOpenStream() 757 dataPtr += sizeof(SkSFNTHeader); in onOpenStream() 760 SkSFNTHeader::TableDirectoryEntry* entry = (SkSFNTHeader::TableDirectoryEntry*)dataPtr; in onOpenStream() 761 dataPtr += sizeof(SkSFNTHeader::TableDirectoryEntry) * numTables; in onOpenStream() 764 this->getTableData(tableTags[tableIndex], 0, tableSize, dataPtr); in onOpenStream() 766 entry->checksum = SkEndian_SwapBE32(SkOTUtils::CalcTableChecksum((SK_OT_ULONG*)dataPtr, in onOpenStream() 768 entry->offset = SkEndian_SwapBE32(SkToU32(dataPtr - dataStart)); in onOpenStream() 771 dataPtr += (tableSize + 3) & ~3; in onOpenStream()
|
/third_party/flutter/skia/tests/ |
D | MallocPixelRefTest.cpp | 97 SkData* dataPtr = data.get(); in DEF_TEST() local 98 REPORTER_ASSERT(reporter, dataPtr->unique()); in DEF_TEST() 100 REPORTER_ASSERT(reporter, !(dataPtr->unique())); in DEF_TEST() 102 REPORTER_ASSERT(reporter, dataPtr->unique()); in DEF_TEST() 103 REPORTER_ASSERT(reporter, dataPtr->data() == pr->pixels()); in DEF_TEST()
|
/third_party/skia/tests/ |
D | MallocPixelRefTest.cpp | 94 SkData* dataPtr = data.get(); in DEF_TEST() local 95 REPORTER_ASSERT(reporter, dataPtr->unique()); in DEF_TEST() 97 REPORTER_ASSERT(reporter, !(dataPtr->unique())); in DEF_TEST() 99 REPORTER_ASSERT(reporter, dataPtr->unique()); in DEF_TEST() 100 REPORTER_ASSERT(reporter, dataPtr->data() == pr->pixels()); in DEF_TEST()
|
D | PictureShaderTest.cpp | 76 auto counter = [](const SkResourceCache::Rec& rec, void* dataPtr) { in DEF_TEST() argument 77 if (rec.getKey().getSharedID() == ((Data*)dataPtr)->sharedID) { in DEF_TEST() 78 ((Data*)dataPtr)->counter += 1; in DEF_TEST()
|
/third_party/flutter/skia/src/gpu/ |
D | GrDrawOpAtlas.cpp | 116 unsigned char* dataPtr = fData; in addSubImage() local 117 dataPtr += fBytesPerPixel * fWidth * loc->fY; in addSubImage() 118 dataPtr += fBytesPerPixel * loc->fX; in addSubImage() 122 SkOpts::RGBA_to_BGRA((uint32_t*)dataPtr, (const uint32_t*)imagePtr, width); in addSubImage() 123 dataPtr += fBytesPerPixel * fWidth; in addSubImage() 128 memcpy(dataPtr, imagePtr, rowBytes); in addSubImage() 129 dataPtr += fBytesPerPixel * fWidth; in addSubImage() 149 const unsigned char* dataPtr = fData; in uploadToTexture() local 157 dataPtr += rowBytes * fDirtyRect.fTop; in uploadToTexture() 158 dataPtr += fBytesPerPixel * fDirtyRect.fLeft; in uploadToTexture() [all …]
|
D | GrDistanceFieldGenFromVector.cpp | 646 DFData* dataPtr, in calculate_distance_field_data() argument 689 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data() 715 dataPtr[idx].fDistSq = currDistSq; in calculate_distance_field_data() 718 dataPtr[idx].fDeltaWindingScore += deltaWindingScore; in calculate_distance_field_data() 786 DFData* dataPtr = (DFData*) dfStorage.get(); in GrGenerateDistanceFieldFromPath() local 789 init_distances(dataPtr, width * height); in GrGenerateDistanceFieldFromPath() 828 calculate_distance_field_data(&segments, dataPtr, width, height); in GrGenerateDistanceFieldFromPath() 834 windingNumber += dataPtr[idx].fDeltaWindingScore; in GrGenerateDistanceFieldFromPath() 860 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath() 870 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl4cShaderAtomicCounterOpsTests.cpp | 370 GLuint* dataPtr; in fillAtomicCounterBuffer() local 379 dataPtr = (GLuint*)gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, sizeof(GLuint), in fillAtomicCounterBuffer() 383 *dataPtr = inputValue; in fillAtomicCounterBuffer() 393 dataPtr = (GLuint*)gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, sizeof(GLuint), in fillAtomicCounterBuffer() 397 *dataPtr = 0; in fillAtomicCounterBuffer() 407 GLuint* dataPtr; in checkAtomicCounterBuffer() local 414 dataPtr = (GLuint*)gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, sizeof(GLuint), GL_MAP_READ_BIT); in checkAtomicCounterBuffer() 417 GLuint finalValue = *dataPtr; in checkAtomicCounterBuffer() 427 dataPtr = (GLuint*)gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, sizeof(GLuint), GL_MAP_READ_BIT); in checkAtomicCounterBuffer() 430 GLuint numberOfCalls = *dataPtr; in checkAtomicCounterBuffer()
|
/third_party/skia/src/gpu/ |
D | GrDrawOpAtlas.cpp | 141 unsigned char* dataPtr = fData; in addSubImage() local 142 dataPtr += fBytesPerPixel * fWidth * rect.fTop; in addSubImage() 143 dataPtr += fBytesPerPixel * rect.fLeft; in addSubImage() 147 SkOpts::RGBA_to_BGRA((uint32_t*)dataPtr, (const uint32_t*)imagePtr, width); in addSubImage() 148 dataPtr += fBytesPerPixel * fWidth; in addSubImage() 153 memcpy(dataPtr, imagePtr, rowBytes); in addSubImage() 154 dataPtr += fBytesPerPixel * fWidth; in addSubImage() 174 const unsigned char* dataPtr = fData; in uploadToTexture() local 182 dataPtr += rowBytes * fDirtyRect.fTop; in uploadToTexture() 183 dataPtr += fBytesPerPixel * fDirtyRect.fLeft; in uploadToTexture() [all …]
|
D | GrDistanceFieldGenFromVector.cpp | 627 DFData* dataPtr, in calculate_distance_field_data() argument 675 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data() 698 dataPtr[idx].fDistSq = currDistSq; in calculate_distance_field_data() 701 dataPtr[idx].fDeltaWindingScore += deltaWindingScore; in calculate_distance_field_data() 771 DFData* dataPtr = (DFData*) dfStorage.get(); in GrGenerateDistanceFieldFromPath() local 774 init_distances(dataPtr, width * height); in GrGenerateDistanceFieldFromPath() 805 calculate_distance_field_data(&segments, dataPtr, width, height); in GrGenerateDistanceFieldFromPath() 816 windingNumber += dataPtr[idx].fDeltaWindingScore; in GrGenerateDistanceFieldFromPath() 834 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath() 849 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrStrikeCache.cpp | 219 void* dataPtr = storage.get(); in addGlyphToAtlas() local 221 sk_bzero(dataPtr, size); in addGlyphToAtlas() 222 dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel; in addGlyphToAtlas() 226 dataPtr, glyphCache->getMasks())) { in addGlyphToAtlas()
|
/third_party/skia/src/gpu/text/ |
D | GrAtlasManager.cpp | 165 void* dataPtr = storage.get(); in addGlyphToAtlas() local 167 sk_bzero(dataPtr, size); in addGlyphToAtlas() 169 dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel; in addGlyphToAtlas() 172 get_packed_glyph_image(skGlyph, rowBytes, expectedMaskFormat, dataPtr); in addGlyphToAtlas()
|
/third_party/flutter/skia/src/core/ |
D | SkDistanceFieldGen.cpp | 360 DFData* dataPtr = (DFData*)storage.get(); in generate_distance_field_from_image() local 364 init_glyph_data(dataPtr, edgePtr, copyPtr, in generate_distance_field_from_image() 369 init_distances(dataPtr, edgePtr, dataWidth, dataHeight); in generate_distance_field_from_image() 374 DFData* currData = dataPtr+dataWidth+1; // skip outer buffer in generate_distance_field_from_image() 404 currData = dataPtr+dataWidth*(dataHeight-2) - 1; // skip outer buffer in generate_distance_field_from_image() 434 currData = dataPtr + dataWidth+1; in generate_distance_field_from_image()
|
/third_party/skia/src/core/ |
D | SkDistanceFieldGen.cpp | 361 DFData* dataPtr = (DFData*)storage.get(); in generate_distance_field_from_image() local 365 init_glyph_data(dataPtr, edgePtr, copyPtr, in generate_distance_field_from_image() 370 init_distances(dataPtr, edgePtr, dataWidth, dataHeight); in generate_distance_field_from_image() 375 DFData* currData = dataPtr+dataWidth+1; // skip outer buffer in generate_distance_field_from_image() 405 currData = dataPtr+dataWidth*(dataHeight-2) - 1; // skip outer buffer in generate_distance_field_from_image() 435 currData = dataPtr + dataWidth+1; in generate_distance_field_from_image()
|
/third_party/vk-gl-cts/modules/egl/ |
D | teglWideColorTests.cpp | 581 void readPixels (const glw::Functions& gl, float* dataPtr); 582 void readPixels (const glw::Functions& gl, deUint32* dataPtr); 583 void readPixels (const glw::Functions& gl, deUint8* dataPtr); 734 void WideColorSurfaceTest::readPixels (const glw::Functions& gl, float* dataPtr) in readPixels() argument 736 gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_FLOAT, dataPtr); in readPixels() 740 void WideColorSurfaceTest::readPixels (const glw::Functions& gl, deUint32 *dataPtr) in readPixels() argument 742 gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV, dataPtr); in readPixels() 746 void WideColorSurfaceTest::readPixels (const glw::Functions& gl, deUint8 *dataPtr) in readPixels() argument 748 gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, dataPtr); in readPixels()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/ |
D | vktShaderRenderMatrixTests.cpp | 1400 void addMatrixUniform (deUint32 bindingLocation, DataType dataType, const float* dataPtr); 1484 …MatrixInstance::addMatrixUniform(deUint32 bindingLocation, DataType dataType, const float *dataPtr) in addMatrixUniform() argument 1493 Mat2 matrix = Mat2(dataPtr); in addMatrixUniform() 1500 Mat2x3 matrix = Mat2x3(dataPtr); in addMatrixUniform() 1507 Mat2x4 matrix = Mat2x4(dataPtr); in addMatrixUniform() 1514 Mat3x2 matrix = Mat3x2(dataPtr); in addMatrixUniform() 1522 Mat3 matrix = Mat3(dataPtr); in addMatrixUniform() 1530 Mat3x4 matrix = Mat3x4(dataPtr); in addMatrixUniform() 1538 Mat4x2 matrix = Mat4x2(dataPtr); in addMatrixUniform() 1547 Mat4x3 matrix = Mat4x3(dataPtr); in addMatrixUniform() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderMatrixTests.cpp | 1400 void addMatrixUniform (deUint32 bindingLocation, DataType dataType, const float* dataPtr); 1484 …MatrixInstance::addMatrixUniform(deUint32 bindingLocation, DataType dataType, const float *dataPtr) in addMatrixUniform() argument 1493 Mat2 matrix = Mat2(dataPtr); in addMatrixUniform() 1500 Mat2x3 matrix = Mat2x3(dataPtr); in addMatrixUniform() 1507 Mat2x4 matrix = Mat2x4(dataPtr); in addMatrixUniform() 1514 Mat3x2 matrix = Mat3x2(dataPtr); in addMatrixUniform() 1522 Mat3 matrix = Mat3(dataPtr); in addMatrixUniform() 1530 Mat3x4 matrix = Mat3x4(dataPtr); in addMatrixUniform() 1538 Mat4x2 matrix = Mat4x2(dataPtr); in addMatrixUniform() 1547 Mat4x3 matrix = Mat4x3(dataPtr); in addMatrixUniform() [all …]
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
D | deMemPool.c | 157 deUint8* dataPtr = (deUint8*)(page + 1); in MemPage_destroy() local 158 memset(dataPtr, 0xCD, (size_t)page->capacity); in MemPage_destroy()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
D | vktImageSubresourceLayoutTests.cpp | 277 auto dataPtr = reinterpret_cast<unsigned char*>(location); in fillWithRandomData24In32() local 284 deMemcpy(dataPtr, &data, blockSize); in fillWithRandomData24In32() 285 dataPtr += blockSize; in fillWithRandomData24In32()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageSubresourceLayoutTests.cpp | 277 auto dataPtr = reinterpret_cast<unsigned char*>(location); in fillWithRandomData24In32() local 284 deMemcpy(dataPtr, &data, blockSize); in fillWithRandomData24In32() 285 dataPtr += blockSize; in fillWithRandomData24In32()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/ |
D | frame_capture_utils.cpp | 695 MemoryBuffer *dataPtr = nullptr; in SerializeBuffer() local 698 scratchBuffer->getInitialized(static_cast<size_t>(buffer->getSize()), &dataPtr, 0)); in SerializeBuffer() 699 ANGLE_TRY(buffer->getSubData(context, 0, dataPtr->size(), dataPtr->data())); in SerializeBuffer() 700 json->addBlob("data", dataPtr->data(), dataPtr->size()); in SerializeBuffer()
|