#include <BufferWriter.h>
|
| TextureUploadWriter ()=default |
|
| TextureUploadWriter (void *ptr, size_t size) |
|
| TextureUploadWriter (const TextureUploadWriter &)=delete |
|
| TextureUploadWriter (TextureUploadWriter &&that) |
|
TextureUploadWriter & | operator= (const TextureUploadWriter &)=delete |
|
TextureUploadWriter & | operator= (TextureUploadWriter &&that) |
|
void | write (size_t offset, const void *src, size_t srcRowBytes, size_t dstRowBytes, size_t trimRowBytes, int rowCount) |
|
void | convertAndWrite (size_t offset, const SkImageInfo &srcInfo, const void *src, size_t srcRowBytes, const SkImageInfo &dstInfo, size_t dstRowBytes) |
|
void | writeRGBFromRGBx (size_t offset, const void *src, size_t srcRowBytes, size_t dstRowBytes, int rowPixels, int rowCount) |
|
| operator bool () const |
|
Mark | mark (size_t offset=0) const |
|
Definition at line 452 of file BufferWriter.h.
◆ TextureUploadWriter() [1/4]
skgpu::TextureUploadWriter::TextureUploadWriter |
( |
| ) |
|
|
default |
◆ TextureUploadWriter() [2/4]
skgpu::TextureUploadWriter::TextureUploadWriter |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Definition at line 455 of file BufferWriter.h.
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ TextureUploadWriter() [3/4]
◆ TextureUploadWriter() [4/4]
◆ convertAndWrite()
void skgpu::TextureUploadWriter::convertAndWrite |
( |
size_t |
offset, |
|
|
const SkImageInfo & |
srcInfo, |
|
|
const void * |
src, |
|
|
size_t |
srcRowBytes, |
|
|
const SkImageInfo & |
dstInfo, |
|
|
size_t |
dstRowBytes |
|
) |
| |
|
inline |
Definition at line 475 of file BufferWriter.h.
477 {
482 }
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
bool SkConvertPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRB, const SkImageInfo &srcInfo, const void *srcPixels, size_t srcRB)
void validate(size_t bytesToWrite) const
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 461 of file BufferWriter.h.
461 {
463 return *this;
464 }
BufferWriter & operator=(const BufferWriter &)=delete
◆ write()
void skgpu::TextureUploadWriter::write |
( |
size_t |
offset, |
|
|
const void * |
src, |
|
|
size_t |
srcRowBytes, |
|
|
size_t |
dstRowBytes, |
|
|
size_t |
trimRowBytes, |
|
|
int |
rowCount |
|
) |
| |
|
inline |
Definition at line 468 of file BufferWriter.h.
469 {
473 }
static void SkRectMemcpy(void *dst, size_t dstRB, const void *src, size_t srcRB, size_t trimRowBytes, int rowCount)
◆ writeRGBFromRGBx()
void skgpu::TextureUploadWriter::writeRGBFromRGBx |
( |
size_t |
offset, |
|
|
const void * |
src, |
|
|
size_t |
srcRowBytes, |
|
|
size_t |
dstRowBytes, |
|
|
int |
rowPixels, |
|
|
int |
rowCount |
|
) |
| |
|
inline |
Definition at line 486 of file BufferWriter.h.
487 {
490 auto* sRow =
reinterpret_cast<const char*
>(
src);
491 auto* dRow =
reinterpret_cast<char*
>(
dst);
492
493 for (
int y = 0;
y < rowCount; ++
y) {
494 for (
int x = 0;
x < rowPixels; ++
x) {
495 memcpy(dRow + 3*
x, sRow+4*
x, 3);
496 }
497 sRow += srcRowBytes;
498 dRow += dstRowBytes;
499 }
500 }
The documentation for this struct was generated from the following file: