Home
last modified time | relevance | path

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

/external/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()
/external/skia/tests/
DGrSurfaceTest.cpp345 SkAutoPixmapStorage srcPixmap; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
346 srcPixmap.alloc(ii); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
347 fillPixels(&srcPixmap, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
360 dContext, srcPixmap, kTopLeft_GrSurfaceOrigin, GrRenderable::kNo, GrProtected::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
375 read.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
379 comparePixels(srcPixmap, read, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
385 write.alloc(srcPixmap.info()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
386 fillPixels(&write, [&srcPixmap](int x, int y) { return ~*srcPixmap.addr32(); }); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestUtils.cpp221 GrCPixmap srcPixmap(srcInfo, col.vec(), floatBpp); in CheckSolidPixels() local
225 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()
/external/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()
/external/skqp/src/core/
DSkMipMap.cpp598 SkPixmap srcPixmap; in Build() local
599 if (!src.peekPixels(&srcPixmap)) { in Build()
602 return Build(srcPixmap, fact); in Build()
/external/skia/src/core/
DSkMipmap.cpp792 SkPixmap srcPixmap; in Build() local
793 if (!src.peekPixels(&srcPixmap)) { in Build()
796 return Build(srcPixmap, fact); in Build()
/external/skqp/tests/
DReadPixelsTest.cpp617 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion() local
618 sk_sp<SkImage> src = SkImage::MakeFromRaster(srcPixmap, nullptr, nullptr); in test_conversion()
/external/skqp/docs/
DSkPixmap_Reference.bmh1238 SkPixmap srcPixmap(srcInfo, (const void*) &pixels.front(), width * 4);
1245 bitmap.installPixels(srcPixmap);
1252 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2);