Lines Matching defs:context

112     sk_gpu_test::FlushFinishTracker* newFlushTracker(GrDirectContext* context);
151 int drawAndFlushAndSync(GrDirectContext* context,
154 draw_skp_and_flush_with_sync(context, surface, fSkp.get(), gpuSync);
195 int drawAndFlushAndSync(GrDirectContext* context,
199 draw_skp_and_flush_with_sync(context, surface, this->frame(i).get(), gpuSync);
316 // Move the context back to this thread now that we're done benching.
344 static void run_benchmark(GrDirectContext* context, SkSurface* surface, SkpProducer* skpp,
353 i += skpp->drawAndFlushAndSync(context, surface, gpuSync);
365 sample.fFrames += skpp->drawAndFlushAndSync(context, surface, gpuSync);
374 context->submit(true);
377 static void run_gpu_time_benchmark(sk_gpu_test::GpuTimer* gpuTimer, GrDirectContext* context,
391 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
396 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
410 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
442 context->submit(true);
564 // Create a context.
572 exitf(ExitErr::kUnavailable, "failed to create context for config %s",
660 static void flush_with_sync(GrDirectContext* context, GpuSync& gpuSync) {
665 flushInfo.fFinishedContext = gpuSync.newFlushTracker(context);
667 context->flush(flushInfo);
668 context->submit();
671 static void draw_skp_and_flush_with_sync(GrDirectContext* context, SkSurface* surface,
676 flush_with_sync(context, gpuSync);
753 sk_gpu_test::FlushFinishTracker* GpuSync::newFlushTracker(GrDirectContext* context) {
754 fFinishTrackers[fCurrentFlushIdx].reset(new sk_gpu_test::FlushFinishTracker(context));