Lines Matching refs:dContext
24 static void busy_wait_for_callback(int* count, int expectedValue, GrDirectContext* dContext, in busy_wait_for_callback() argument
30 dContext->checkAsyncWorkCompletion(); in busy_wait_for_callback()
40 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
44 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kNo, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
50 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
51 dContext->submit(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 busy_wait_for_callback(&count, 1, dContext, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
68 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
70 bool fenceSupport = dContext->priv().caps()->fenceSyncSupport(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
72 dContext->backend() == GrBackendApi::kVulkan || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
73 ((dContext->backend() == GrBackendApi::kOpenGL) && fenceSupport) || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
74 ((dContext->backend() == GrBackendApi::kMetal) && fenceSupport) || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
75 dContext->backend() == GrBackendApi::kDawn || in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
76 dContext->backend() == GrBackendApi::kDirect3D; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
84 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
85 dContext->submit(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
90 image->flush(dContext, flushInfoFinishedProc); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
91 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
99 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
100 dContext->submit(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 dContext->flush(flushInfoFinishedProc); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
114 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 dContext->submit(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 dContext->flush(flushInfoFinishedProc); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
120 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
122 busy_wait_for_callback(&count, 5, dContext, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
128 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
132 dContext->flush(flushInfoFinishedProc); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
133 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
136 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 dContext->submit(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()