Home
last modified time | relevance | path

Searched refs:fPixels (Results 1 – 25 of 60) sorted by relevance

123

/third_party/flutter/skia/src/gpu/
DGrDeferredProxyUploader.h58 GrColorType pixelColorType = SkColorTypeToGrColorType(this->fPixels.info().colorType()); in scheduleUpload()
61 if (this->fPixels.addr()) { in scheduleUpload()
62 writePixelsFn(proxy, 0, 0, this->fPixels.width(), this->fPixels.height(), in scheduleUpload()
63 pixelColorType, this->fPixels.addr(), this->fPixels.rowBytes()); in scheduleUpload()
77 SkAutoPixmapStorage* getPixels() { return &fPixels; } in getPixels()
90 SkAutoPixmapStorage fPixels; variable
DGrSWMaskHelper.cpp84 if (!fPixels->tryAlloc(bmImageInfo)) { in init()
87 fPixels->erase(0); in init()
89 fDraw.fDst = *fPixels; in init()
97 SkImageInfo ii = SkImageInfo::MakeA8(fPixels->width(), fPixels->height()); in toTextureProxy()
98 size_t rowBytes = fPixels->rowBytes(); in toTextureProxy()
100 sk_sp<SkData> data = fPixels->detachPixelsAsData(); in toTextureProxy()
DGrSWMaskHelper.h40 : fPixels(pixels ? pixels : &fPixelsStorage) { }
58 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
63 SkAutoPixmapStorage* fPixels; variable
DGrResourceProvider.cpp51 if (!inLevel.fPixels) { in prepare_level()
54 outLevel->fPixels = data->get(); in prepare_level()
57 outLevel->fPixels = nullptr; in prepare_level()
68 outLevel->fPixels = inLevel.fPixels; in prepare_level()
71 outLevel->fPixels = data->get(); in prepare_level()
73 SkRectMemcpy(data->get(), outLevel->fRowBytes, inLevel.fPixels, inLevel.fRowBytes, minRB, in prepare_level()
155 if (!mipLevel.fPixels) { in createTexture()
203 SkAssertResult(sContext->writePixels(srcInfo, tmpLevel.fPixels, tmpLevel.fRowBytes, {0, 0})); in createTexture()
251 level.fPixels = zeros.get(); in createTexture()
334 level.fPixels = zeros.get(); in createApproxTexture()
/third_party/skia/src/gpu/
DGrDeferredProxyUploader.h57 GrColorType pixelColorType = SkColorTypeToGrColorType(this->fPixels.info().colorType()); in scheduleUpload()
60 if (this->fPixels.addr()) { in scheduleUpload()
62 SkIRect::MakeSize(fPixels.dimensions()), in scheduleUpload()
64 this->fPixels.addr(), in scheduleUpload()
65 this->fPixels.rowBytes()); in scheduleUpload()
79 SkAutoPixmapStorage* getPixels() { return &fPixels; } in getPixels()
92 SkAutoPixmapStorage fPixels; variable
DGrSWMaskHelper.cpp137 if (!fPixels->tryAlloc(bmImageInfo)) { in init()
140 fPixels->erase(0); in init()
142 fDraw.fDst = *fPixels; in init()
149 SkImageInfo ii = SkImageInfo::MakeA8(fPixels->width(), fPixels->height()); in toTextureView()
150 size_t rowBytes = fPixels->rowBytes(); in toTextureView()
153 SkAssertResult(bitmap.installPixels(ii, fPixels->detachPixels(), rowBytes, in toTextureView()
DGrSWMaskHelper.h42 : fPixels(pixels ? pixels : &fPixelsStorage) { }
67 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
72 SkAutoPixmapStorage* fPixels; variable
DGrResourceProvider.cpp74 bool hasPixels = texels[0].fPixels; in createTexture()
146 if (!mipLevel.fPixels) { in createTexture()
772 if (!inLevel.fPixels) { in prepare_level()
773 outLevel->fPixels = nullptr; in prepare_level()
784 outLevel->fPixels = inLevel.fPixels; in prepare_level()
789 outLevel->fPixels = data->get(); in prepare_level()
794 GrCPixmap(srcInfo, inLevel.fPixels, actualRB)); in prepare_level()
804 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in prepareLevels()
833 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in writePixels()
/third_party/flutter/skia/include/core/
DSkPixmap.h41 : fPixels(nullptr), fRowBytes(0), fInfo(SkImageInfo::MakeUnknown(0, 0)) in SkPixmap()
63 : fPixels(addr), fRowBytes(rowBytes), fInfo(info) in SkPixmap()
137 const void* addr() const { return fPixels; } in addr()
290 return (const char*)fPixels + fInfo.computeOffset(x, y, fRowBytes); in addr()
303 return reinterpret_cast<const uint8_t*>(fPixels); in addr8()
316 return reinterpret_cast<const uint16_t*>(fPixels); in addr16()
329 return reinterpret_cast<const uint32_t*>(fPixels); in addr32()
342 return reinterpret_cast<const uint64_t*>(fPixels); in addr64()
358 return reinterpret_cast<const uint16_t*>(fPixels); in addrF16()
458 void* writable_addr() const { return const_cast<void*>(fPixels); } in writable_addr()
[all …]
DSkPixelRef.h40 void* pixels() const { return fPixels; } in pixels()
97 void* fPixels; variable
/third_party/skia/include/core/
DSkPixmap.h41 : fPixels(nullptr), fRowBytes(0), fInfo(SkImageInfo::MakeUnknown(0, 0)) in SkPixmap()
63 : fPixels(addr), fRowBytes(rowBytes), fInfo(info) in SkPixmap()
143 const void* addr() const { return fPixels; } in addr()
286 return (const char*)fPixels + fInfo.computeOffset(x, y, fRowBytes); in addr()
299 return reinterpret_cast<const uint8_t*>(fPixels); in addr8()
312 return reinterpret_cast<const uint16_t*>(fPixels); in addr16()
325 return reinterpret_cast<const uint32_t*>(fPixels); in addr32()
338 return reinterpret_cast<const uint64_t*>(fPixels); in addr64()
354 return reinterpret_cast<const uint16_t*>(fPixels); in addrF16()
454 void* writable_addr() const { return const_cast<void*>(fPixels); } in writable_addr()
[all …]
DSkPixelRef.h40 void* pixels() const { return fPixels; } in pixels()
92 void* fPixels; variable
/third_party/flutter/skia/bench/
DSkVMBench.cpp23 : fPixels(pixels) in SkVMBench()
33 this->setUnits(fPixels); in onDelayedSetup()
34 fSrc.resize(fPixels, 0x7f123456); // Arbitrary non-opaque non-transparent value. in onDelayedSetup()
35 fDst.resize(fPixels, 0xff987654); // Arbitrary value. in onDelayedSetup()
53 for (int i = 0; i < fPixels; i++) { in onDelayedSetup()
61 SkOpts::blit_row_s32a_opaque(fDst.data(), fSrc.data(), fPixels, 0xff); in onDraw()
63 fPipeline.run(0,0,fPixels,1); in onDraw()
65 fProgram.eval(fPixels, fSrc.data(), fDst.data()); in onDraw()
70 int fPixels; member in SkVMBench
DSkSLInterpreterBench.cpp40 fPixels.resize(fCount * 4); in onDelayedSetup()
41 for (float& c : fPixels) { in onDelayedSetup()
50 fPixels.data() + 0 * fCount, in onDraw()
51 fPixels.data() + 1 * fCount, in onDraw()
52 fPixels.data() + 2 * fCount, in onDraw()
53 fPixels.data() + 3 * fCount, in onDraw()
59 SkAssertResult(fByteCode->run(fMain, fPixels.data(), nullptr, fCount, nullptr, 0)); in onDraw()
72 std::vector<float> fPixels; member in SkSLInterpreterCFBench
/third_party/flutter/skia/src/core/
DSkImageInfo.cpp105 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
128 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
142 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
165 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
DSkWritePixelsRec.h19 : fPixels(pixels) in SkWritePixelsRec()
27 : fPixels(pm.addr()) in SkWritePixelsRec()
34 const void* fPixels; member
DSkPixmap.cpp34 fPixels = nullptr; in reset()
43 fPixels = addr; in reset()
75 if (fPixels) { in extractSubset()
77 pixels = (const uint8_t*)fPixels + r.fTop * fRowBytes + r.fLeft * bpp; in extractSubset()
148 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes()); in readPixels()
311 (const uint64_t*)fPixels + y * (fRowBytes >> 3) + x; in getColor()
324 (const float*)fPixels + 4*y*(fRowBytes >> 4) + 4*x; in getColor()
/third_party/skia/src/core/
DSkImageInfo.cpp136 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
159 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
173 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
196 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
DSkWritePixelsRec.h19 : fPixels(pixels) in SkWritePixelsRec()
27 : fPixels(pm.addr()) in SkWritePixelsRec()
34 const void* fPixels; member
DSkPixmap.cpp36 fPixels = nullptr; in reset()
45 fPixels = addr; in reset()
77 if (fPixels) { in extractSubset()
79 pixels = (const uint8_t*)fPixels + r.fTop * fRowBytes + r.fLeft * bpp; in extractSubset()
172 return SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, in readPixels()
411 (const uint64_t*)fPixels + y * (fRowBytes >> 3) + x; in getColor()
424 (const float*)fPixels + 4*y*(fRowBytes >> 4) + 4*x; in getColor()
/third_party/flutter/skia/tools/
DHashAndEncode.cpp59 fPixels.reset(new uint64_t[N]); in HashAndEncode()
62 fPixels.get(), dstFmt, dstAlpha, &dstProfile, N)) { in HashAndEncode()
64 fPixels.reset(nullptr); in HashAndEncode()
70 if (const uint64_t* px = fPixels.get()) { in write()
84 if (!fPixels) { in writePngTo()
149 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in writePngTo()
/third_party/skia/src/image/
DSkReadPixelsRec.h19 : fPixels(pixels) in SkReadPixelsRec()
27 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
34 void* fPixels; member
/third_party/flutter/skia/src/image/
DSkReadPixelsRec.h19 : fPixels(pixels) in SkReadPixelsRec()
27 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
34 void* fPixels; member
/third_party/skia/tools/
DHashAndEncode.cpp70 fPixels.reset(new uint64_t[N]); in HashAndEncode()
73 void* dst = fPixels.get(); in HashAndEncode()
79 fPixels.reset(nullptr); in HashAndEncode()
90 if (const uint64_t* px = fPixels.get()) { in feedHash()
108 if (!fPixels) { in encodePNG()
172 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in encodePNG()
/third_party/flutter/skia/tools/fiddle/
Dfiddle_main.cpp162 texels[0].fPixels = pixmap->addr(); in setup_backend_objects()
166 texels[i].fPixels = nullptr; in setup_backend_objects()
217 texels[0].fPixels = data.get(); in setup_backend_objects()
221 texels[i].fPixels = nullptr; in setup_backend_objects()

123