60 {
61 auto dContext = ctxInfo.directContext();
62
67
70
71 dContext->flush();
73
75
79
80 dContext->flush(
surface.get(), flushInfoFinishedProc);
81 dContext->submit();
83
85
87
88 dContext->flush(
surface.get(), flushInfoFinishedProc);
90
91 bool expectAsyncCallback = dContext->priv().caps()->finishedProcAsyncCallbackSupport();
92 if (expectAsyncCallback) {
93
94
96 } else {
98 }
99 dContext->flush();
102
103
105 dContext->flush(
image, flushInfoFinishedProc);
107 if (expectAsyncCallback) {
108
109
111 } else {
113 }
114 dContext->flush();
117
118
120 dContext->flush(flushInfoFinishedProc);
122 if (expectAsyncCallback) {
123
124
126 } else {
128 }
129 dContext->flush();
132
133
134 dContext->flush(flushInfoFinishedProc);
138
140 int count2 = 0;
142 dContext->flush(
surface.get(), flushInfoFinishedProc);
144
145
147 dContext->flush(flushInfoFinishedProc);
150
151 dContext->flush();
153
156}
static void testing_finished_proc(void *ctx)
static void busy_wait_for_callback(int *count, int expectedValue, GrDirectContext *dContext, skiatest::Reporter *reporter)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
#define REPORTER_ASSERT(r, cond,...)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
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)