Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
capture.h File Reference
#include <functional>
#include <initializer_list>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "flutter/fml/logging.h"
#include "flutter/fml/macros.h"
#include "impeller/geometry/color.h"
#include "impeller/geometry/matrix.h"
#include "impeller/geometry/point.h"
#include "impeller/geometry/rect.h"
#include "impeller/geometry/scalar.h"
#include "impeller/geometry/vector.h"

Go to the source code of this file.

Classes

struct  impeller::CaptureCursorListElement< Type >
 
struct  impeller::CaptureProperty
 A capturable property type. More...
 
struct  impeller::CaptureProperty::Options
 
struct  impeller::CaptureProperty::Options::Range
 
struct  impeller::CaptureProcTable
 
class  impeller::CapturePlaybackList< Type >
 
struct  impeller::CaptureElement
 
class  impeller::Capture
 
class  impeller::CaptureContext
 

Namespaces

namespace  impeller
 

Macros

#define _FOR_EACH_CAPTURE_PROPERTY(PROPERTY_V)
 
#define _CAPTURE_TYPE(type_name, pascal_name, lower_name)   k##pascal_name,
 
#define _CAPTURE_PROPERTY_CAST_DECLARATION(type_name, pascal_name, lower_name)    std::optional<type_name> As##pascal_name() const;
 
#define _CAPTURE_PROPERTY_DECLARATION(type_name, pascal_name, lower_name)
 
#define _CAPTURE_PROC(type_name, pascal_name, lower_name)
 
#define _CAPTURE_PROPERTY_RECORDER_DECLARATION(type_name, pascal_name, lower_name)
 

Functions

 impeller::_FOR_EACH_CAPTURE_PROPERTY (_CAPTURE_PROPERTY_DECLARATION)
 

Macro Definition Documentation

◆ _CAPTURE_PROC

#define _CAPTURE_PROC (   type_name,
  pascal_name,
  lower_name 
)
Value:
std::function<void(Capture##pascal_name##Property&)> lower_name = \
[](Capture##pascal_name##Property& value) {};
uint8_t value

Definition at line 125 of file capture.h.

127 {};

◆ _CAPTURE_PROPERTY_CAST_DECLARATION

#define _CAPTURE_PROPERTY_CAST_DECLARATION (   type_name,
  pascal_name,
  lower_name 
)     std::optional<type_name> As##pascal_name() const;

Definition at line 64 of file capture.h.

◆ _CAPTURE_PROPERTY_DECLARATION

#define _CAPTURE_PROPERTY_DECLARATION (   type_name,
  pascal_name,
  lower_name 
)
Value:
struct Capture##pascal_name##Property final : public CaptureProperty { \
type_name value; \
\
static std::shared_ptr<Capture##pascal_name##Property> \
Make(const std::string& label, type_name value, Options options); \
\
/* |CaptureProperty| */ \
Type GetType() const override; \
\
/* |CaptureProperty| */ \
void Invoke(const CaptureProcTable& proc_table) override; \
\
private: \
Capture##pascal_name##Property(const std::string& label, \
type_name value, \
Options options); \
\
FML_DISALLOW_COPY_AND_ASSIGN(Capture##pascal_name##Property); \
};
const char * options

Definition at line 102 of file capture.h.

103 : public CaptureProperty { \
104 type_name value; \
105 \
106 static std::shared_ptr<Capture##pascal_name##Property> \
107 Make(const std::string& label, type_name value, Options options); \
108 \
109 /* |CaptureProperty| */ \
110 Type GetType() const override; \
111 \
112 /* |CaptureProperty| */ \
113 void Invoke(const CaptureProcTable& proc_table) override; \
114 \
115 private: \
116 Capture##pascal_name##Property(const std::string& label, \
117 type_name value, \
118 Options options); \
119 \
120 FML_DISALLOW_COPY_AND_ASSIGN(Capture##pascal_name##Property); \
121 };
SkFourByteTag GetType(SkReadBuffer *reader)
ObjectPtr Invoke(const Library &lib, const char *name)

◆ _CAPTURE_PROPERTY_RECORDER_DECLARATION

#define _CAPTURE_PROPERTY_RECORDER_DECLARATION (   type_name,
  pascal_name,
  lower_name 
)
Value:
inline type_name Add##pascal_name(std::string_view label, type_name value, \
CaptureProperty::Options options = {}) { \
return value; \
}

Definition at line 223 of file capture.h.

226 {}) { \
227 return value; \
228 }

◆ _CAPTURE_TYPE

#define _CAPTURE_TYPE (   type_name,
  pascal_name,
  lower_name 
)    k##pascal_name,

Definition at line 62 of file capture.h.

◆ _FOR_EACH_CAPTURE_PROPERTY

#define _FOR_EACH_CAPTURE_PROPERTY (   PROPERTY_V)
Value:
PROPERTY_V(bool, Boolean, boolean) \
PROPERTY_V(int, Integer, integer) \
PROPERTY_V(Scalar, Scalar, scalar) \
PROPERTY_V(Point, Point, point) \
PROPERTY_V(Vector3, Vector3, vector3) \
PROPERTY_V(Rect, Rect, rect) \
PROPERTY_V(Color, Color, color) \
PROPERTY_V(Matrix, Matrix, matrix) \
PROPERTY_V(std::string, String, string)
SkColor4f color

Definition at line 30 of file capture.h.