5#ifndef FLUTTER_LIB_UI_PAINTING_CANVAS_H_
6#define FLUTTER_LIB_UI_PAINTING_CANVAS_H_
8#include "flutter/display_list/dl_blend_mode.h"
9#include "flutter/display_list/dl_op_flags.h"
10#include "flutter/lib/ui/dart_wrapper.h"
11#include "flutter/lib/ui/painting/path.h"
12#include "flutter/lib/ui/painting/picture.h"
13#include "flutter/lib/ui/painting/picture_recorder.h"
14#include "flutter/lib/ui/painting/rrect.h"
15#include "flutter/lib/ui/painting/vertices.h"
22 DEFINE_WRAPPERTYPEINFO();
23 FML_FRIEND_MAKE_REF_COUNTED(
Canvas);
51 void scale(
double sx,
double sy);
52 void rotate(
double radians);
53 void skew(
double sx,
double sy);
54 void transform(
const tonic::Float64List& matrix4);
62 bool doAntiAlias =
true);
127 int filterQualityIndex);
140 int filterQualityIndex);
146 double center_bottom,
153 int bitmapSamplingIndex);
165 const tonic::Float32List&
points);
174 int filterQualityIndex,
185 bool transparentOccluder);
static const int points[]
void drawLine(double x1, double y1, double x2, double y2, Dart_Handle paint_objects, Dart_Handle paint_data)
void drawArc(double left, double top, double right, double bottom, double startAngle, double sweepAngle, bool useCenter, Dart_Handle paint_objects, Dart_Handle paint_data)
void drawShadow(const CanvasPath *path, SkColor color, double elevation, bool transparentOccluder)
void rotate(double radians)
void drawOval(double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data)
static void Create(Dart_Handle wrapper, PictureRecorder *recorder, double left, double top, double right, double bottom)
void drawRect(double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data)
void translate(double dx, double dy)
void clipRect(double left, double top, double right, double bottom, DlCanvas::ClipOp clipOp, bool doAntiAlias=true)
void clipRRect(const RRect &rrect, bool doAntiAlias=true)
DisplayListBuilder * builder()
void drawColor(SkColor color, DlBlendMode blend_mode)
void transform(const tonic::Float64List &matrix4)
void drawRRect(const RRect &rrect, Dart_Handle paint_objects, Dart_Handle paint_data)
void skew(double sx, double sy)
void clipPath(const CanvasPath *path, bool doAntiAlias=true)
Dart_Handle drawImage(const CanvasImage *image, double x, double y, Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex)
void restoreToCount(int count)
Dart_Handle drawImageRect(const CanvasImage *image, double src_left, double src_top, double src_right, double src_bottom, double dst_left, double dst_top, double dst_right, double dst_bottom, Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex)
void drawVertices(const Vertices *vertices, DlBlendMode blend_mode, Dart_Handle paint_objects, Dart_Handle paint_data)
void getTransform(Dart_Handle matrix4_handle)
void drawCircle(double x, double y, double radius, Dart_Handle paint_objects, Dart_Handle paint_data)
Dart_Handle drawImageNine(const CanvasImage *image, double center_left, double center_top, double center_right, double center_bottom, double dst_left, double dst_top, double dst_right, double dst_bottom, Dart_Handle paint_objects, Dart_Handle paint_data, int bitmapSamplingIndex)
void drawPicture(Picture *picture)
void saveLayerWithoutBounds(Dart_Handle paint_objects, Dart_Handle paint_data)
Dart_Handle drawAtlas(Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex, CanvasImage *atlas, Dart_Handle transforms_handle, Dart_Handle rects_handle, Dart_Handle colors_handle, DlBlendMode blend_mode, Dart_Handle cull_rect_handle)
void drawDRRect(const RRect &outer, const RRect &inner, Dart_Handle paint_objects, Dart_Handle paint_data)
void scale(double sx, double sy)
void getLocalClipBounds(Dart_Handle rect_handle)
void drawPoints(Dart_Handle paint_objects, Dart_Handle paint_data, DlCanvas::PointMode point_mode, const tonic::Float32List &points)
void drawPaint(Dart_Handle paint_objects, Dart_Handle paint_data)
void getDestinationClipBounds(Dart_Handle rect_handle)
void drawPath(const CanvasPath *path, Dart_Handle paint_objects, Dart_Handle paint_data)
void saveLayer(double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data)
struct _Dart_Handle * Dart_Handle
sk_sp< const SkImage > atlas
sk_sp< const SkImage > image
sk_sp< const SkPicture > picture
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path