Home
last modified time | relevance | path

Searched refs:srcPixmap (Results 1 – 11 of 11) sorted by relevance

/third_party/flutter/skia/docs/examples/
DPixmap_readPixels.cpp12 SkPixmap srcPixmap(srcInfo, (const void*) &pixels.front(), width * 4); in draw() local
19 bitmap.installPixels(srcPixmap); in draw()
26 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2); in draw()
/third_party/skia/docs/examples/
DPixmap_readPixels.cpp12 SkPixmap srcPixmap(srcInfo, (const void*) &pixels.front(), width * 4); in draw() local
19 bitmap.installPixels(srcPixmap); in draw()
26 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2); in draw()
/third_party/skia/tests/
DGrSurfaceTest.cpp344 SkAutoPixmapStorage srcPixmap; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
345 srcPixmap.alloc(ii); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
346 fillPixels(&srcPixmap, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
359 dContext, srcPixmap, kTopLeft_GrSurfaceOrigin, GrRenderable::kNo, GrProtected::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
374 read.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
378 comparePixels(srcPixmap, read, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
384 write.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
385 fillPixels(&write, [&srcPixmap](int x, int y) { return ~*srcPixmap.addr32(); }); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestUtils.cpp220 GrCPixmap srcPixmap(srcInfo, col.vec(), floatBpp); in CheckSolidPixels() local
224 SkAssertResult(GrConvertPixels(colorPixmap, srcPixmap)); in CheckSolidPixels()
DReadPixelsTest.cpp440 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion() local
441 sk_sp<SkImage> src = SkImage::MakeFromRaster(srcPixmap, nullptr, nullptr); in test_conversion()
/third_party/skia/tools/gpu/
DManagedBackendTexture.cpp76 SkPixmap srcPixmap; in MakeFromBitmap() local
77 if (!src.peekPixels(&srcPixmap)) { in MakeFromBitmap()
81 return MakeFromPixmap(dContext, srcPixmap, mipmapped, renderable, isProtected); in MakeFromBitmap()
/third_party/flutter/skia/tests/
DGrSurfaceTest.cpp371 SkAutoPixmapStorage srcPixmap; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
372 srcPixmap.alloc(ii); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
373 fillPixels(&srcPixmap, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
385 auto backendTex = context->priv().createBackendTexture(&srcPixmap, 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
399 read.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
400 auto readResult = surfContext->readPixels(srcPixmap.info(), read.writable_addr(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
404 comparePixels(srcPixmap, read, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
410 write.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
411 fillPixels(&write, [&srcPixmap](int x, int y) { return ~*srcPixmap.addr32(); }); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
412 auto writeResult = surfContext->writePixels(srcPixmap.info(), write.addr(), 0, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DReadPixelsTest.cpp548 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion() local
549 sk_sp<SkImage> src = SkImage::MakeFromRaster(srcPixmap, nullptr, nullptr); in test_conversion()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnTexture.cpp147 SkPixmap srcPixmap(srcInfo, texels[i].fPixels, origRowBytes); in upload() local
151 bitmap.writePixels(srcPixmap); in upload()
/third_party/flutter/skia/src/core/
DSkMipMap.cpp599 SkPixmap srcPixmap; in Build() local
600 if (!src.peekPixels(&srcPixmap)) { in Build()
603 return Build(srcPixmap, fact); in Build()
/third_party/skia/src/core/
DSkMipmap.cpp794 SkPixmap srcPixmap; in Build() local
795 if (!src.peekPixels(&srcPixmap)) { in Build()
798 return Build(srcPixmap, fact); in Build()