36 SubmittedInfo*
info = (SubmittedInfo*)ctx;
38 *
info->fSuccess = success;
45 auto ctx = ctxInfo.directContext();
53 int submittedCount = 0;
54 bool submittedSuccess =
false;
55 SubmittedInfo submittedInfo = { &submittedCount, &submittedSuccess };
61 ctx->flush(flushInfo);
75 ctx->flush(flushInfo);
96 ctx->abandonContext();
100 ctx->flush(flushInfo);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void testing_submitted_proc(void *ctx, bool success)
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(FlushSubmittedProcTest, reporter, ctxInfo, CtsEnforcement::kApiLevel_T)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
#define REPORTER_ASSERT(r, cond,...)
void clear(SkColor color)
@ kNoAccess
back-end surface will not be used by client
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)
GrGpuSubmittedContext fSubmittedContext
GrGpuSubmittedProc fSubmittedProc
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)