Flutter Engine
The Flutter Engine
SkMeshGanesh.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 SkMeshGanesh_DEFINED
9#define SkMeshGanesh_DEFINED
10
11#include "include/core/SkMesh.h"
14
15#include <cstddef>
16
17class GrDirectContext;
18
19namespace SkMeshes {
20/**
21 * Makes a GPU-backed index buffer to be used with SkMeshes.
22 *
23 * @param GrDirectContext* If non-null, the data will be uploaded to the corresponding GPU and the
24 * returned buffer will only be compatible with surfaces using the same
25 * context. If null, the data will be uploaded to a CPU buffer.
26 * @param data The data used to populate the buffer, or nullptr to create a zero-
27 * initialized buffer.
28 * @param size Both the size of the data in 'data' and the size of the resulting
29 * buffer.
30 */
32
33/**
34 * Makes a copy of an index buffer. The copy will be GPU backed if the context is non-null.
35 */
37
38/**
39 * Makes a GPU-backed vertex buffer to be used with SkMeshes.
40 *
41 * @param GrDirectContext* If non-null, the data will be uploaded to the corresponding GPU and the
42 * returned buffer will only be compatible with surfaces using the same
43 * context. If null, the data will be uploaded to a CPU buffer.
44 * @param data The data used to populate the buffer, or nullptr to create a zero-
45 * initialized buffer.
46 * @param size Both the size of the data in 'data' and the size of the resulting
47 * buffer.
48 */
50
51/**
52 * Makes a copy of a vertex buffer. The copy will be GPU backed if the context is non-null.
53 */
55} // namespace SkMeshes
56
57#endif
#define SK_API
Definition: SkAPI.h:35
SK_API sk_sp< SkMesh::IndexBuffer > CopyIndexBuffer(const sk_sp< SkMesh::IndexBuffer > &)
Definition: SkMesh.cpp:893
SK_API sk_sp< SkMesh::IndexBuffer > MakeIndexBuffer(const void *data, size_t size)
Definition: SkMesh.cpp:889
SK_API sk_sp< SkMesh::VertexBuffer > MakeVertexBuffer(const void *, size_t size)
Definition: SkMesh.cpp:905
SK_API sk_sp< SkMesh::VertexBuffer > CopyVertexBuffer(const sk_sp< SkMesh::VertexBuffer > &)
Definition: SkMesh.cpp:909
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63