Home
last modified time | relevance | path

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

123

/external/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.cpp83 if (!fPixels->tryAlloc(bmImageInfo)) { in init()
86 fPixels->erase(0); in init()
88 fDraw.fDst = *fPixels; in init()
96 SkImageInfo ii = SkImageInfo::MakeA8(fPixels->width(), fPixels->height()); in toTextureProxy()
97 size_t rowBytes = fPixels->rowBytes(); in toTextureProxy()
99 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
/external/skqp/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.cpp83 if (!fPixels->tryAlloc(bmImageInfo)) { in init()
86 fPixels->erase(0); in init()
88 fDraw.fDst = *fPixels; in init()
95 SkImageInfo ii = SkImageInfo::MakeA8(fPixels->width(), fPixels->height()); in toTextureProxy()
96 size_t rowBytes = fPixels->rowBytes(); in toTextureProxy()
98 sk_sp<SkData> data = fPixels->detachPixelsAsData(); in toTextureProxy()
DGrSWMaskHelper.h39 : fPixels(pixels ? pixels : &fPixelsStorage) { }
57 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
62 SkAutoPixmapStorage* fPixels; variable
/external/skia/include/core/
DSkPixmap.h51 : fPixels(nullptr), fRowBytes(0), fInfo(SkImageInfo::MakeUnknown(0, 0)) in SkPixmap()
73 : fPixels(addr), fRowBytes(rowBytes), fInfo(info) in SkPixmap()
147 const void* addr() const { return fPixels; } in addr()
295 return (const char*)fPixels + fInfo.computeOffset(x, y, fRowBytes); in addr()
308 return reinterpret_cast<const uint8_t*>(fPixels); in addr8()
321 return reinterpret_cast<const uint16_t*>(fPixels); in addr16()
334 return reinterpret_cast<const uint32_t*>(fPixels); in addr32()
347 return reinterpret_cast<const uint64_t*>(fPixels); in addr64()
363 return reinterpret_cast<const uint16_t*>(fPixels); in addrF16()
463 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
DSkRasterHandleAllocator.h48 void* fPixels; // pixels for this allocation member
/external/skqp/include/core/
DSkPixmap.h51 : fPixels(nullptr), fRowBytes(0), fInfo(SkImageInfo::MakeUnknown(0, 0)) in SkPixmap()
73 : fPixels(addr), fRowBytes(rowBytes), fInfo(info) in SkPixmap()
147 const void* addr() const { return fPixels; } in addr()
285 return (const char*)fPixels + fInfo.computeOffset(x, y, fRowBytes); in addr()
298 return reinterpret_cast<const uint8_t*>(fPixels); in addr8()
311 return reinterpret_cast<const uint16_t*>(fPixels); in addr16()
324 return reinterpret_cast<const uint32_t*>(fPixels); in addr32()
337 return reinterpret_cast<const uint64_t*>(fPixels); in addr64()
352 return reinterpret_cast<const uint16_t*>(fPixels); in addrF16()
451 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
DSkRasterHandleAllocator.h48 void* fPixels; // pixels for this allocation member
/external/skqp/src/core/
DSkImageInfo.cpp103 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
126 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
140 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
163 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
DSkWritePixelsRec.h18 : fPixels(pixels) in SkWritePixelsRec()
26 : fPixels(pm.addr()) in SkWritePixelsRec()
33 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()
147 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes()); in readPixels()
309 (const uint64_t*)fPixels + y * (fRowBytes >> 3) + x; in getColor()
322 (const float*)fPixels + 4*y*(fRowBytes >> 4) + 4*x; in getColor()
DSkPixmapPriv.h60 pm->fPixels = address; in ResetPixmapKeepInfo()
/external/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.h18 : fPixels(pixels) in SkWritePixelsRec()
26 : fPixels(pm.addr()) in SkWritePixelsRec()
33 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()
DSkPixmapPriv.h60 pm->fPixels = address; in ResetPixmapKeepInfo()
/external/skia/src/image/
DSkReadPixelsRec.h18 : fPixels(pixels) in SkReadPixelsRec()
26 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
33 void* fPixels; member
/external/skqp/src/image/
DSkReadPixelsRec.h18 : fPixels(pixels) in SkReadPixelsRec()
26 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
33 void* fPixels; member
/external/skia/tools/fiddle/
Dfiddle_main.cpp157 texels[0].fPixels = pixmap->addr(); in setup_backend_objects()
161 texels[i].fPixels = nullptr; in setup_backend_objects()
212 texels[0].fPixels = data.get(); in setup_backend_objects()
216 texels[i].fPixels = nullptr; in setup_backend_objects()
/external/skqp/tools/fiddle/
Dfiddle_main.cpp157 texels[0].fPixels = pixmap->addr(); in setup_backend_objects()
161 texels[i].fPixels = nullptr; in setup_backend_objects()
212 texels[0].fPixels = data.get(); in setup_backend_objects()
216 texels[i].fPixels = nullptr; in setup_backend_objects()
/external/skia/src/gpu/mtl/
DGrMtlGpu.mm190 if (!texels[0].fPixels) {
202 if (texels[currentMipLevel].fPixels) {
241 if (texels[currentMipLevel].fPixels) {
250 const char* src = (const char*)texels[currentMipLevel].fPixels;
336 mipMapsStatus = texels[0].fPixels ? GrMipMapsStatus::kValid : GrMipMapsStatus::kDirty;
340 SkASSERT(texels[i].fPixels);
342 SkASSERT(!texels[i].fPixels);
359 if (mipLevelCount && texels[0].fPixels) {
824 SkASSERT(texels[i].fPixels);

123