Home
last modified time | relevance | path

Searched refs:fPixels (Results 1 - 25 of 27) sorted by relevance

12

/third_party/skia/src/gpu/
H A DGrDeferredProxyUploader.h27 * the payload data to allocate and fill in the fPixels pixmap.
37 * Finally, we call resetDeferredUploader, which deletes the uploader object, causing fPixels
57 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; member in GrDeferredProxyUploader
H A 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()
H A DGrSWMaskHelper.h42 : fPixels(pixels ? pixels : &fPixelsStorage) { } in GrSWMaskHelper()
67 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
72 SkAutoPixmapStorage* fPixels; member in GrSWMaskHelper
H A DGrResourceProvider.cpp74 bool hasPixels = texels[0].fPixels; in createTexture()
146 if (!mipLevel.fPixels) { in createTexture()
778 if (!inLevel.fPixels) { in prepare_level()
779 outLevel->fPixels = nullptr; in prepare_level()
790 outLevel->fPixels = inLevel.fPixels; in prepare_level()
795 outLevel->fPixels = data->get(); in prepare_level()
800 GrCPixmap(srcInfo, inLevel.fPixels, actualRB)); in prepare_level()
810 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in prepareLevels()
839 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in writePixels()
[all...]
H A DGrGpu.cpp56 bool hasBasePixels = texels[0].fPixels; in validate_texel_levels()
62 if (texels[currentMipLevel].fPixels) { in validate_texel_levels()
206 if (!texels->fPixels) { in createTexture()
228 if (texelLevelCount && texels[0].fPixels) { in createTexture()
239 markMipLevelsClean = (texelLevelCount > 1 && !levelClearMask && texels[1].fPixels); in createTexture()
H A DGrProxyProvider.cpp401 texels[0].fPixels = bitmap.getPixels(); in createMippedProxyFromBitmap()
407 texels[i].fPixels = generatedMipLevel.fPixmap.addr(); in createMippedProxyFromBitmap()
409 SkASSERT(texels[i].fPixels); in createMippedProxyFromBitmap()
/third_party/skia/include/core/
H A 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()
713 const void* fPixels; global() member in SkPixmap
[all...]
H A DSkPixelRef.h40 void* pixels() const { return fPixels; } in pixels()
92 void* fPixels; member in SkPixelRef
H A DSkRasterHandleAllocator.h48 void* fPixels; // pixels for this allocation member
/third_party/skia/src/core/
H A DSkImageInfo.cpp147 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
170 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
184 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
207 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
H A DSkWritePixelsRec.h19 : fPixels(pixels) in SkWritePixelsRec()
27 : fPixels(pm.addr()) in SkWritePixelsRec()
34 const void* fPixels; member
H A 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()
H A DSkPixmapPriv.h60 pm->fPixels = address; in ResetPixmapKeepInfo()
H A DSkPixelRef.cpp33 , fPixels(pixels) in SkPixelRef()
50 // note: we do not change fPixels in android_only_reset()
H A DSkBitmap.cpp487 rec.fInfo, rec.fPixels, rec.fRowBytes)) { in writePixels()
/third_party/skia/src/image/
H A DSkReadPixelsRec.h19 : fPixels(pixels) in SkReadPixelsRec()
27 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
34 void* fPixels; member
/third_party/skia/tools/
H A 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()
H A DHashAndEncode.h29 std::unique_ptr<uint64_t[]> fPixels; // In our standard format mentioned above. member in HashAndEncode
/third_party/skia/docs/examples/
H A DCanvas_accessTopRasterHandle.cpp18 rec->fPixels = context; in REG_FIDDLE()
/third_party/skia/gm/
H A Drasterhandleallocator.cpp73 rec->fPixels = pixmap.writable_addr();
135 rec->fPixels = CGBitmapContextGetData(cg);
226 rec->fPixels = pixels; in Create()
/third_party/skia/src/gpu/d3d/
H A DGrD3DGpu.cpp677 if (!mipLevelCount || !texels[0].fPixels) { in onWritePixels()
723 if (1 == mipLevelCount && !texels[0].fPixels) { in uploadToTexture()
729 if (!texels[i].fPixels) { in uploadToTexture()
756 if (texels[currentMipLevel].fPixels) { in uploadToTexture()
764 const char* src = (const char*)texels[currentMipLevel].fPixels; in uploadToTexture()
/third_party/skia/src/gpu/vk/
H A DGrVkGpu.cpp511 if (!mipLevelCount || !texels[0].fPixels) { in onWritePixels()
537 texels[0].fPixels, in onWritePixels()
946 // But we may need to adjust the fPixels ptr based on the copyRect, or fRowBytes. in uploadTexDataOptimal()
959 SkASSERT(texelsShallowCopy[0].fPixels && texelsShallowCopy[0].fRowBytes); in uploadTexDataOptimal()
988 if (texelsShallowCopy[currentMipLevel].fPixels) { in uploadTexDataOptimal()
994 const char* src = (const char*)texelsShallowCopy[currentMipLevel].fPixels; in uploadTexDataOptimal()
/third_party/skia/tests/
H A DTransferPixelsTest.cpp314 data.fPixels = textureData.get(); in basic_transfer_from_test()
/third_party/skia/include/private/
H A DGrTypesPriv.h163 const void* fPixels = nullptr;
165 // This may be used to keep fPixels from being freed while a GrMipLevel exists.
/third_party/skia/src/gpu/dawn/
H A DGrDawnGpu.cpp365 const void* src = texels[i].fPixels; in uploadTextureData()

Completed in 28 milliseconds

12