Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
lib
ui
painting
vertices.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_LIB_UI_PAINTING_VERTICES_H_
6
#define FLUTTER_LIB_UI_PAINTING_VERTICES_H_
7
8
#include "flutter/display_list/dl_vertices.h"
9
#include "flutter/lib/ui/dart_wrapper.h"
10
#include "
third_party/skia/include/core/SkVertices.h
"
11
#include "
third_party/tonic/typed_data/typed_list.h
"
12
13
namespace
flutter
{
14
15
class
Vertices
:
public
RefCountedDartWrappable
<Vertices> {
16
DEFINE_WRAPPERTYPEINFO();
17
FML_FRIEND_MAKE_REF_COUNTED
(
Vertices
);
18
19
public
:
20
~Vertices
()
override
;
21
22
static
bool
init
(
Dart_Handle
vertices_handle,
23
DlVertexMode
vertex_mode,
24
Dart_Handle
positions_handle,
25
Dart_Handle
texture_coordinates_handle,
26
Dart_Handle
colors_handle,
27
Dart_Handle
indices_handle);
28
29
const
DlVertices
*
vertices
()
const
{
return
vertices_.get(); }
30
31
void
dispose
();
32
33
private
:
34
Vertices
();
35
36
std::shared_ptr<DlVertices> vertices_;
37
};
38
39
}
// namespace flutter
40
41
#endif
// FLUTTER_LIB_UI_PAINTING_VERTICES_H_
SkVertices.h
flutter::DlVertices
Holds all of the data (both required and optional) for a DisplayList drawVertices call.
Definition
dl_vertices.h:71
flutter::RefCountedDartWrappable
Definition
dart_wrapper.h:15
flutter::Vertices
Definition
vertices.h:15
flutter::Vertices::~Vertices
~Vertices() override
Definition
vertices.cc:19
flutter::Vertices::dispose
void dispose()
Definition
vertices.cc:83
flutter::Vertices::vertices
const DlVertices * vertices() const
Definition
vertices.h:29
flutter::Vertices::init
static bool init(Dart_Handle vertices_handle, DlVertexMode vertex_mode, Dart_Handle positions_handle, Dart_Handle texture_coordinates_handle, Dart_Handle colors_handle, Dart_Handle indices_handle)
Definition
vertices.cc:21
Dart_Handle
struct _Dart_Handle * Dart_Handle
Definition
dart_api.h:258
flutter
Definition
asset_manager.cc:10
flutter::DlVertexMode
DlVertexMode
Defines the way in which the vertices of a DlVertices object are separated into triangles into which ...
Definition
dl_vertices.h:20
FML_FRIEND_MAKE_REF_COUNTED
#define FML_FRIEND_MAKE_REF_COUNTED(T)
Definition
ref_counted.h:132
typed_list.h
Generated on Fri Apr 26 2024 06:14:17 for Flutter Engine by
1.9.8