Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GpuTools.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GpuTools_DEFINED
9#define GpuTools_DEFINED
10
12
13#if defined(SK_GANESH)
15#endif
16
17#if defined(SK_GRAPHITE)
19#endif
20
21namespace skgpu {
22// Flush any surface, even if we don't know what GPU backend it is for. This keeps the
23// comparisons between Ganesh and Graphite more fair as the latter can do more batching
24// unless we explicitly perform flushes.
25inline void Flush(SkSurface* surface) {
26#if defined(SK_GANESH)
28#endif
29#if defined(SK_GRAPHITE)
31#endif
32}
33
35#if defined(SK_GANESH)
37#endif
38#if defined(SK_GRAPHITE)
39 // Graphite doesn't have a "flush and submit" equivilent
41#endif
42}
43}
44
45#endif
VkSurfaceKHR surface
Definition main.cc:49
SK_API void FlushAndSubmit(sk_sp< SkSurface >)
SK_API GrSemaphoresSubmitted Flush(sk_sp< SkSurface >)
void Flush(sk_sp< SkSurface > surface)
void FlushAndSubmit(SkSurface *surface)
Definition GpuTools.h:34
void Flush(SkSurface *surface)
Definition GpuTools.h:25