366 {
368 return {true, 0};
369 }
370
376 srcRect, dstRect, nullptr,
379 return {true, 0};
380 }
381
383
386 }
387
390
394 }
395
397
398 int tileFilterPad;
402
403 tileFilterPad = 1;
404 } else {
405 tileFilterPad = 0;
406 }
407
408 int maxTileSize = maxTextureSize - 2 * tileFilterPad;
409 int tileSize;
413 localToDevice,
414 srcToDst,
416 maxTileSize,
417 cacheSize,
418 &tileSize,
419 &clippedSubset)) {
420
421
423 size_t tiles = draw_tiled_bitmap(canvas,
424 bm,
425 tileSize,
426 srcToDst,
428 clippedSubset,
430 aaFlags,
431 constraint,
433 return {
true,
tiles};
434 }
435 }
436 }
437
438 return {false, 0};
439}
static SkImage_Base * as_IB(SkImage *image)
static constexpr int kBicubicFilterTexelPad
static SkDevice * TopDevice(const SkCanvas *canvas)
virtual bool isClipEmpty() const
@ kFast_SrcRectConstraint
sample outside bounds; faster
virtual bool getROPixels(GrDirectContext *, SkBitmap *, CachingHint=kAllow_CachingHint) const =0
SkISize dimensions() const
virtual bool isTextureBacked() const =0
static ImageDrawMode OptimizeSampleArea(const SkISize &imageSize, const SkRect &origSrcRect, const SkRect &origDstRect, const SkPoint dstClip[4], SkRect *outSrcRect, SkRect *outDstRect, SkMatrix *outSrcToDst)
static bool ShouldTileImage(SkIRect conservativeClipBounds, const SkISize &imageSize, const SkMatrix &ctm, const SkMatrix &srcToDst, const SkRect *src, int maxTileSize, size_t cacheSize, int *tileSize, SkIRect *clippedSubset)
static bool CanDisableMipmap(const SkMatrix &viewM, const SkMatrix &localM)
clipRect(r.rect, r.opAA.op(), r.opAA.aa())) template<> void Draw
sk_sp< const SkImage > image
SkSamplingOptions sampling
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 mode
SkSamplingOptions(SkFilterMode::kLinear))
constexpr struct @263 tiles[]
static constexpr SkISize Make(int32_t w, int32_t h)
const SkFilterMode filter
const SkMipmapMode mipmap