Home
last modified time | relevance | path

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

123

/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/src/gpu/
DGrDeferredProxyUploader.h57 GrColorType pixelColorType = SkColorTypeToGrColorType(this->fPixels.info().colorType()); in scheduleUpload()
60 if (this->fPixels.addr()) { in scheduleUpload()
61 writePixelsFn(proxy, 0, 0, this->fPixels.width(), this->fPixels.height(), in scheduleUpload()
62 pixelColorType, this->fPixels.addr(), this->fPixels.rowBytes()); in scheduleUpload()
76 SkAutoPixmapStorage* getPixels() { return &fPixels; } in getPixels()
89 SkAutoPixmapStorage fPixels; variable
DGrSWMaskHelper.cpp85 if (!fPixels->tryAlloc(bmImageInfo)) { in init()
88 fPixels->erase(0); in init()
90 fDraw.fDst = *fPixels; in init()
97 SkImageInfo ii = SkImageInfo::MakeA8(fPixels->width(), fPixels->height()); in toTextureView()
98 size_t rowBytes = fPixels->rowBytes(); in toTextureView()
101 SkAssertResult(bitmap.installPixels(ii, fPixels->detachPixels(), rowBytes, in toTextureView()
DGrSWMaskHelper.h40 : fPixels(pixels ? pixels : &fPixelsStorage) { }
58 fPixels->erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
63 SkAutoPixmapStorage* fPixels; variable
DGrResourceProvider.cpp69 bool hasPixels = mipLevelCount && texels[0].fPixels; in createTexture()
120 if (!mipLevel.fPixels) { in createTexture()
565 if (!inLevel.fPixels) { in prepare_level()
566 outLevel->fPixels = nullptr; in prepare_level()
577 outLevel->fPixels = inLevel.fPixels; in prepare_level()
582 outLevel->fPixels = data->get(); in prepare_level()
586 return GrConvertPixels(dstInfo, data->get(), tempRB, srcInfo, inLevel.fPixels, actualRB); in prepare_level()
596 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in prepareLevels()
625 SkASSERT(mipLevelCount && texels && texels[0].fPixels); in writePixels()
/external/skia/bench/
DSkSLInterpreterBench.cpp47 fPixels.resize(fCount * 4); in onDelayedSetup()
48 for (float& c : fPixels) { in onDelayedSetup()
56 fPixels.data() + 0 * fCount, in onDraw()
57 fPixels.data() + 1 * fCount, in onDraw()
58 fPixels.data() + 2 * fCount, in onDraw()
59 fPixels.data() + 3 * fCount, in onDraw()
73 std::vector<float> fPixels; member in SkSLInterpreterCFBench
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
/external/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.h39 void* pixels() const { return fPixels; } in pixels()
96 void* fPixels; variable
/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
/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()
/external/skia/src/core/
DSkImageInfo.cpp129 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
152 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
166 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
189 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()
169 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes()); in readPixels()
387 (const uint64_t*)fPixels + y * (fRowBytes >> 3) + x; in getColor()
400 (const float*)fPixels + 4*y*(fRowBytes >> 4) + 4*x; in getColor()
/external/skia/tools/
DHashAndEncode.cpp68 fPixels.reset(new uint64_t[N]); in HashAndEncode()
71 fPixels.get(), dstFmt, dstAlpha, &dstProfile, N)) { in HashAndEncode()
73 fPixels.reset(nullptr); in HashAndEncode()
79 if (const uint64_t* px = fPixels.get()) { in write()
93 if (!fPixels) { in writePngTo()
158 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in writePngTo()
DHashAndEncode.h23 std::unique_ptr<uint64_t[]> fPixels; variable
/external/skia/src/image/
DSkReadPixelsRec.h19 : fPixels(pixels) in SkReadPixelsRec()
27 : fPixels(pm.writable_addr()) in SkReadPixelsRec()
34 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/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/tools/fiddle/
Dfiddle_main.cpp162 texels[0].fPixels = pixmap->addr(); in setup_backend_objects()
166 texels[i].fPixels = nullptr; in setup_backend_objects()
219 texels[0].fPixels = data.get(); in setup_backend_objects()
223 texels[i].fPixels = nullptr; in setup_backend_objects()

123