• Home
  • Raw
  • Download

Lines Matching refs:wh

37 static SkImageInfo default_ii(int wh) {  in default_ii()  argument
38 return SkImageInfo::Make(wh, wh, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in default_ii()
42 int wh) { in new_SDC() argument
47 {wh, wh}, in new_SDC()
56 static void create_view_key(GrUniqueKey* key, int wh, int id) { in create_view_key() argument
59 builder[0] = wh; in create_view_key()
67 static void create_vert_key(GrUniqueKey* key, int wh, int id) { in create_vert_key() argument
70 builder[0] = wh; in create_vert_key()
85 static SkBitmap create_bitmap(int wh) { in create_bitmap() argument
88 bitmap.allocPixels(default_ii(wh)); in create_bitmap()
97 tmp.drawRect({10, 10, wh-10.0f, wh-10.0f}, blue); in create_bitmap()
172 typedef void (TestHelper::*addAccessFP)(SkCanvas*, int wh, int id,
174 typedef bool (TestHelper::*checkFP)(SkCanvas*, int wh,
180 int wh, in addViewAccess() argument
187 wh, failLookup, failFillingIn, id, &fStats); in addViewAccess()
199 SkRect::MakeWH(wh, wh), in addViewAccess()
200 SkRect::MakeWH(wh, wh), in addViewAccess()
210 bool checkView(SkCanvas* canvas, int wh, in checkView() argument
219 create_view_key(&key, wh, kNoID); in checkView()
281 int wh,
289 int wh, in addVertAccess() argument
293 this->addVertAccess(canvas, wh, id, failLookup, failFillingIn, nullptr); in addVertAccess()
296 bool checkVert(SkCanvas* canvas, int wh, in checkVert() argument
305 create_vert_key(&key, wh, kNoID); in checkVert()
389 size_t gpuSize(int wh) const { in gpuSize()
393 return GrSurface::ComputeSize(format, {wh, wh}, /*colorSamplesPerPixel=*/1, in gpuSize()
400 int wh,
403 static GrSurfaceProxyView CreateViewOnCpu(GrRecordingContext*, int wh, Stats*);
404 static bool FillInViewOnGpu(GrDirectContext*, int wh, Stats*,
422 int wh, int id, bool failLookup, bool failFillingIn, in Make() argument
426 rContext, rContext, stats, wh, id, failLookup, failFillingIn, isNewerBetter); in Make()
434 GrThreadSafeVertexTestOp(GrRecordingContext* rContext, TestHelper::Stats* stats, int wh, int id, in GrThreadSafeVertexTestOp() argument
439 , fWH(wh) in GrThreadSafeVertexTestOp()
612 int wh, int id, in addVertAccess() argument
619 wh, id, in addVertAccess()
630 int wh, in CreateViewOnCpu() argument
634 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxyFromBitmap(create_bitmap(wh), in CreateViewOnCpu()
648 bool TestHelper::FillInViewOnGpu(GrDirectContext* dContext, int wh, Stats* stats, in FillInViewOnGpu() argument
652 std::unique_ptr<skgpu::v1::SurfaceDrawContext> sdc = new_SDC(dContext, wh); in FillInViewOnGpu()
659 { 10, 10, wh-10.0f, wh-10.0f }, &GrStyle::SimpleFill()); in FillInViewOnGpu()
673 int wh, in AccessCachedView() argument
677 create_view_key(&key, wh, id); in AccessCachedView()
683 dContext, GrColorType::kRGBA_8888, {wh, wh}, kImageOrigin, SkBackingFit::kExact); in AccessCachedView()
705 if (!FillInViewOnGpu(dContext, wh, stats, lazyView, std::move(trampoline))) { in AccessCachedView()
724 view = CreateViewOnCpu(rContext, wh, stats); in AccessCachedView()
1398 int wh = numResources; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
1401 helper.addViewAccess(ddlCanvas, wh, kNoID, false, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1402 REPORTER_ASSERT(reporter, helper.checkView(ddlCanvas, wh, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1406 helper.addVertAccess(ddlCanvas, wh, kNoID, false, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1407 REPORTER_ASSERT(reporter, helper.checkVert(ddlCanvas, wh, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1425 void (*create_key)(GrUniqueKey*, int wh, int id)) { in test_15() argument