Home
last modified time | relevance | path

Searched refs:GrPixmap (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/src/gpu/
DGrPixmap.h83 class GrPixmap : public GrPixmapBase<void, GrPixmap> {
85 GrPixmap() = default;
86 GrPixmap(const GrPixmap&) = default;
87 GrPixmap(GrPixmap&&) = default;
88 GrPixmap& operator=(const GrPixmap&) = default;
89 GrPixmap& operator=(GrPixmap&&) = default;
91 GrPixmap(GrImageInfo info, void* addr, size_t rowBytes) : GrPixmapBase(info, addr, rowBytes) {} in GrPixmap() function
93 /* implicit */ GrPixmap(const SkPixmap& pixmap) in GrPixmap() function
100 static GrPixmap Allocate(const GrImageInfo& info) { in Allocate()
106 return GrPixmap(info, SkData::MakeUninitialized(size), rb); in Allocate()
[all …]
DGrDataUtils.h17 class GrPixmap; variable
39 bool GrConvertPixels(const GrPixmap& dst, const GrCPixmap& src, bool flipY = false);
DSurfaceContext.cpp65 bool SurfaceContext::readPixels(GrDirectContext* dContext, GrPixmap dst, SkIPoint pt) { in readPixels()
164 dst = GrPixmap(dst.info().makeColorType(GrColorType::kRGBA_8888), in readPixels()
227 GrPixmap tmp; in readPixels()
512 GrPixmap tmpPM(tmpInfo, tmp, tmpRB); in internalWritePixels()
735 GrPixmap pm = GrPixmap::Allocate(ii); in asyncReadPixels()
962 GrPixmap yPmp = GrPixmap::Allocate(yInfo); in asyncRescaleAndReadPixelsYUV420()
963 GrPixmap uPmp = GrPixmap::Allocate(uvInfo); in asyncRescaleAndReadPixelsYUV420()
964 GrPixmap vPmp = GrPixmap::Allocate(uvInfo); in asyncRescaleAndReadPixelsYUV420()
1292 GrConvertPixels( GrPixmap(dstInfo, dst, dstInfo.minRowBytes()), in transferPixels()
DGrDataUtils.cpp571 bool GrConvertPixels(const GrPixmap& dst, const GrCPixmap& src, bool flipY) { in GrConvertPixels()
589 GrPixmap temp = GrPixmap::Allocate(dst.info().makeColorType(GrColorType::kRGB_888x)); in GrConvertPixels()
606 GrPixmap temp = GrPixmap::Allocate(src.info().makeColorType(GrColorType::kRGB_888x)); in GrConvertPixels()
DGrDirectContextPriv.cpp272 GrPixmap firstReadPM( upmII, firstRead, kSize*sizeof(uint32_t)); in test_for_preserving_PM_conversions()
273 GrPixmap secondReadPM(upmII, secondRead, kSize*sizeof(uint32_t)); in test_for_preserving_PM_conversions()
DSurfaceContext.h86 bool readPixels(GrDirectContext* dContext, GrPixmap dst, SkIPoint srcPt);
DGrOpFlushState.cpp126 if (!GrConvertPixels( GrPixmap(tmpInfo, tmpPixels.get(), tightRB ), in doUpload()
DBUILD.bazel120 "GrPixmap.h",
DGrResourceProvider.cpp793 return GrConvertPixels( GrPixmap(dstInfo, data->get(), tempRB), in prepare_level()
/third_party/skia/tests/
DPremulAlphaRoundTripTest.cpp120 GrPixmap src = GrPixmap::Allocate(upmInfo); in DEF_TEST()
128 GrPixmap surf = GrPixmap::Allocate(pmInfo); in DEF_TEST()
131 GrPixmap read1 = GrPixmap::Allocate(upmInfo); in DEF_TEST()
134 GrPixmap surf2 = GrPixmap::Allocate(pmInfo); in DEF_TEST()
137 GrPixmap read2 = GrPixmap::Allocate(upmInfo); in DEF_TEST()
140 auto get_pixel = [](const GrPixmap& pm, int x, int y) { in DEF_TEST()
DTestUtils.cpp184 GrPixmap floatA = GrPixmap::Allocate(floatInfo); in ComparePixels()
185 GrPixmap floatB = GrPixmap::Allocate(floatInfo); in ComparePixels()
213 GrPixmap colorPixmap; in CheckSolidPixels()
223 colorPixmap = GrPixmap::Allocate(dstInfo); in CheckSolidPixels()
230 GrPixmap f32Pixmap = GrPixmap::Allocate(pixmap.info().makeColorType(kRGBA_F32_SkColorType)); in CheckSolidPixels()
DSurfaceDrawContextTest.cpp62 GrPixmap dstPM = GrPixmap::Allocate(dstInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp81 GrPixmap dstPM(ii, dstPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 GrPixmap readPM(ii, read.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTransferPixelsTest.cpp45 GrConvertPixels(GrPixmap(dstInfo, dstLocation(i, j), dstBpp), in fill_transfer_data()
46 GrPixmap(srcInfo, &srcPixel, 4)); in fill_transfer_data()
96 return GrConvertPixels(GrPixmap(dstInfo, dst, rowBytes), in read_pixels_from_texture()
97 GrPixmap(tmpInfo, tmpPixels.get(), tmpRowBytes)); in read_pixels_from_texture()
DFloatingPointTextureTest.cpp66 GrPixmap readPixmap(info, readBuffer.begin(), info.minRowBytes()); in runFPTest()
DDMSAATest.cpp68 GrPixmap pixmap = GrPixmap::Allocate(info); in check_sdc_color()
DSRGBReadWritePixelsTest.cpp130 GrPixmap readPM = GrPixmap::Allocate(dstInfo); in read_and_check_pixels()
DSkSLCross.cpp108 GrPixmap resultPM(SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kPremul_SkAlphaType), in run_test()
DReadWritePixelsGpuTest.cpp1132 auto level = GrPixmap::Allocate(info.makeWH(std::max(w, 1), std::max(h, 1))); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1155 GrPixmap keepAlive; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1161 keepAlive = GrPixmap::Allocate(levels[1].info().makeWH(w, h)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1202 GrPixmap read = GrPixmap::Allocate(readInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrMeshTest.cpp599 GrPixmap resultPM = GrPixmap::Allocate(gold.info());
DGrPipelineDynamicStateTest.cpp238 GrPixmap resultPM(ii, resultPx, kScreenSize*sizeof(uint32_t)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp230 GrConvertPixels(GrPixmap(resultII, &result.fR, sizeof(result)), in get_expected_color()
231 GrPixmap( ii, data.get(), ii.minRowBytes())); in get_expected_color()
DSkRuntimeEffectTest.cpp937 GrPixmap pixmap(info, &actual, sizeof(GrColor)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProcessorTest.cpp235 GrPixmap resultPM(ii, outBuffer, sdc->width()*sizeof(uint32_t)); in render_fp()
/third_party/skia/gn/
Dgpu.gni140 "$_src/gpu/GrPixmap.h",

12