|
| TextureGenerator (SkCanvas *canvas, const SkImageInfo &info, sk_sp< SkPicture > pic) |
|
bool | isTextureGenerator () const final |
|
GrSurfaceProxyView | generateTexture (GrRecordingContext *, const SkImageInfo &info, skgpu::Mipmapped mipmapped, GrImageTexGenPolicy) |
|
virtual GrSurfaceProxyView | onGenerateTexture (GrRecordingContext *, const SkImageInfo &, skgpu::Mipmapped, GrImageTexGenPolicy)=0 |
|
virtual GrSurfaceOrigin | origin () const |
|
virtual | ~SkImageGenerator () |
|
uint32_t | uniqueID () const |
|
sk_sp< SkData > | refEncodedData () |
|
const SkImageInfo & | getInfo () const |
|
bool | isValid (GrRecordingContext *context) const |
|
bool | isProtected () const |
|
bool | getPixels (const SkImageInfo &info, void *pixels, size_t rowBytes) |
|
bool | getPixels (const SkPixmap &pm) |
|
bool | queryYUVAInfo (const SkYUVAPixmapInfo::SupportedDataTypes &supportedDataTypes, SkYUVAPixmapInfo *yuvaPixmapInfo) const |
|
bool | getYUVAPlanes (const SkYUVAPixmaps &yuvaPixmaps) |
|
virtual bool | isTextureGenerator () const |
|
Definition at line 172 of file image_pict.cpp.
◆ TextureGenerator()
Definition at line 174 of file image_pict.cpp.
176
178
180
181 if (fRContext) {
185 0,
187 nullptr);
188 }
189#if defined(SK_GRAPHITE)
192 }
193#endif
194
196 surface->getCanvas()->clear(0);
197 surface->getCanvas()->translate(-100, -100);
198 surface->getCanvas()->drawPicture(pic);
199 fImage =
surface->makeImageSnapshot();
200 }
201 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kTopLeft_GrSurfaceOrigin
sk_sp< T > sk_ref_sp(T *obj)
GrTextureGenerator(const SkImageInfo &info, uint32_t uniqueId=kNeedNewImageUniqueID)
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
◆ onGenerateTexture()
|
inlineoverrideprotectedvirtual |
Implements GrTextureGenerator.
Definition at line 203 of file image_pict.cpp.
206 {
209
211 if (!view) {
212 return {};
213 }
214
216
218 return view;
219 }
225 view,
226 mipmapped,
229 budgeted,
230 "SurfaceProxyView_GenerateTexture");
231 }
#define SkASSERT_RELEASE(cond)
@ kNew_Uncached_Unbudgeted
bool matches(GrContext_Base *candidate) const
GrRecordingContextPriv priv()
static GrSurfaceProxyView Copy(GrRecordingContext *context, GrSurfaceProxyView src, skgpu::Mipmapped mipmapped, SkIRect srcRect, SkBackingFit fit, skgpu::Budgeted budgeted, std::string_view label)
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 policy
std::tuple< GrSurfaceProxyView, GrColorType > AsView(GrRecordingContext *rContext, const SkImage *img, skgpu::Mipmapped mipmapped, GrImageTexGenPolicy policy)
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
The documentation for this class was generated from the following file: