Flutter Engine
 
Loading...
Searching...
No Matches
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
10#include "third_party/skia/include/core/SkVertices.h"
12
13namespace flutter {
14
15class Vertices : public RefCountedDartWrappable<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 std::shared_ptr<DlVertices>& vertices() const { return vertices_; }
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_
const std::shared_ptr< DlVertices > & vertices() const
Definition vertices.h:29
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
#define DEFINE_WRAPPERTYPEINFO()
DlVertexMode
Defines the way in which the vertices of a DlVertices object are separated into triangles into which ...
Definition dl_vertices.h:18
#define FML_FRIEND_MAKE_REF_COUNTED(T)