473 {
476
477 for (auto enableSortingAndReduction : {Enable::kYes, Enable::kNo}) {
484 if (!dContext) {
485 ERRORF(
reporter,
"could not create mock dContext with fReduceOpsTaskSplitting %s.",
486 (Enable::kYes == enableSortingAndReduction) ? "enabled" : "disabled");
487 continue;
488 }
489
491
496
498
499
500
503 {4, 4},
505 1,
510 "ManyDependentsMipMappedTest");
511
512
513
515
518 mipmapProxy,
519 nullptr,
522
525
527 mipmapSDC->testingOnly_PeekLastOpsTask() ==
529
530
532
535
536
539 auto sdc1Task =
sk_ref_sp(sdc1->testingOnly_PeekLastOpsTask());
540
541
542
543
544
548 initialMipmapRegenTask != mipmapSDC->testingOnly_PeekLastOpsTask());
550
551
554 auto sdc2Task =
sk_ref_sp(sdc2->testingOnly_PeekLastOpsTask());
555
556
560
561
563
564
567
568
570 auto mipmapRTCTask =
sk_ref_sp(mipmapSDC->testingOnly_PeekLastOpsTask());
572
573
576
577
579
580
583
584
585
586
588
589
592
593
596 sdc2Task =
sk_ref_sp(sdc2->testingOnly_PeekLastOpsTask());
597
598
599
604
605
608 }
609}
static std::unique_ptr< skgpu::ganesh::SurfaceDrawContext > draw_mipmap_into_new_render_target(GrRecordingContext *rContext, GrColorType colorType, SkAlphaType alphaType, GrSurfaceProxyView mipmapView, GrSamplerState::MipmapMode mm)
@ kTopLeft_GrSurfaceOrigin
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
sk_sp< T > sk_ref_sp(T *obj)
#define REPORTER_ASSERT(r, cond,...)
const GrCaps * caps() const
bool mipmapSupport() const
skgpu::Swizzle getReadSwizzle(const GrBackendFormat &format, GrColorType colorType) const
SK_API GrBackendFormat defaultBackendFormat(SkColorType, GrRenderable) const
static sk_sp< GrDirectContext > MakeMock(const GrMockOptions *, const GrContextOptions &)
void flushAndSubmit(GrSyncCpu sync=GrSyncCpu::kNo)
GrDirectContextPriv priv()
GrRenderTask * getLastRenderTask(const GrSurfaceProxy *) const
sk_sp< GrTextureProxy > createProxy(const GrBackendFormat &, SkISize dimensions, GrRenderable, int renderTargetSampleCnt, skgpu::Mipmapped, SkBackingFit, skgpu::Budgeted, GrProtected, std::string_view label, GrInternalSurfaceFlags=GrInternalSurfaceFlags::kNone, UseAllocator useAllocator=UseAllocator::kYes)
GrDrawingManager * drawingManager()
GrProxyProvider * proxyProvider()
bool mipmapsAreDirty() const
static std::unique_ptr< SurfaceDrawContext > Make(GrRecordingContext *, GrColorType, sk_sp< GrSurfaceProxy >, sk_sp< SkColorSpace >, GrSurfaceOrigin, const SkSurfaceProps &)
uint32_t uint32_t * format
Enable fReduceOpsTaskSplitting