#include <canvas.h>
Public Member Functions | |
| ~Canvas () override | |
| void | save () |
| void | saveLayerWithoutBounds (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) |
| void | restore () |
| int | getSaveCount () |
| void | restoreToCount (int count) |
| void | translate (double dx, double dy) |
| void | scale (double sx, double sy) |
| void | rotate (double radians) |
| void | skew (double sx, double sy) |
| void | transform (const tonic::Float64List &matrix4) |
| void | getTransform (Dart_Handle matrix4_handle) |
| void | clipRect (double left, double top, double right, double bottom, DlClipOp clipOp, bool doAntiAlias=true) |
| void | clipRRect (const RRect &rrect, bool doAntiAlias=true) |
| void | clipRSuperellipse (const RSuperellipse *rse, bool doAntiAlias=true) |
| void | clipPath (const CanvasPath *path, bool doAntiAlias=true) |
| void | getDestinationClipBounds (Dart_Handle rect_handle) |
| void | getLocalClipBounds (Dart_Handle rect_handle) |
| void | drawColor (uint32_t color, DlBlendMode blend_mode) |
| void | drawLine (double x1, double y1, double x2, double y2, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawPaint (Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawRect (double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawRRect (const RRect &rrect, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawDRRect (const RRect &outer, const RRect &inner, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawRSuperellipse (const RSuperellipse *rse, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawOval (double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data) |
| void | drawCircle (double x, double y, double radius, 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 | drawPath (const CanvasPath *path, Dart_Handle paint_objects, Dart_Handle paint_data) |
| Dart_Handle | drawImage (const CanvasImage *image, double x, double y, Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex) |
| 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) |
| 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 | drawPoints (Dart_Handle paint_objects, Dart_Handle paint_data, DlPointMode point_mode, const tonic::Float32List &points) |
| void | drawVertices (const Vertices *vertices, DlBlendMode blend_mode, 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 | drawShadow (const CanvasPath *path, uint32_t color, double elevation, bool transparentOccluder) |
| void | Invalidate () |
| DisplayListBuilder * | builder () |
Public Member Functions inherited from flutter::RefCountedDartWrappable< Canvas > | |
| virtual void | RetainDartWrappableReference () const override |
| virtual void | ReleaseDartWrappableReference () const override |
Public Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| void | AddRef () const |
| bool | HasOneRef () const |
| void | AssertHasOneRef () const |
Public Member Functions inherited from tonic::DartWrappable | |
| DartWrappable () | |
| virtual const DartWrapperInfo & | GetDartWrapperInfo () const =0 |
| Dart_Handle | CreateDartWrapper (DartState *dart_state) |
| void | AssociateWithDartWrapper (Dart_Handle wrappable) |
| void | ClearDartWrapper () |
| Dart_WeakPersistentHandle | dart_wrapper () const |
Static Public Member Functions | |
| static void | Create (Dart_Handle wrapper, PictureRecorder *recorder, double left, double top, double right, double bottom) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
| enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| RefCountedThreadSafe () | |
| ~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| RefCountedThreadSafeBase () | |
| ~RefCountedThreadSafeBase () | |
| bool | Release () const |
| void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
| virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
| static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
|
override |
References clipPath(), clipRect(), clipRRect(), clipRSuperellipse(), drawArc(), drawAtlas(), drawCircle(), drawColor(), drawDRRect(), drawImage(), drawImageNine(), drawImageRect(), drawLine(), drawOval(), drawPaint(), drawPath(), drawPicture(), drawPoints(), drawRect(), drawRRect(), drawRSuperellipse(), drawShadow(), drawVertices(), getDestinationClipBounds(), getLocalClipBounds(), getSaveCount(), getTransform(), Invalidate(), restore(), restoreToCount(), rotate(), save(), saveLayer(), saveLayerWithoutBounds(), scale(), skew(), and translate().
|
inline |
| void flutter::Canvas::clipPath | ( | const CanvasPath * | path, |
| bool | doAntiAlias = true |
||
| ) |
Definition at line 187 of file canvas.cc.
References flutter::path.
Referenced by ~Canvas().
| void flutter::Canvas::clipRect | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| DlClipOp | clipOp, | ||
| bool | doAntiAlias = true |
||
| ) |
Definition at line 161 of file canvas.cc.
References impeller::TRect< Scalar >::MakeLTRB().
Referenced by ~Canvas().
| void flutter::Canvas::clipRRect | ( | const RRect & | rrect, |
| bool | doAntiAlias = true |
||
| ) |
Definition at line 174 of file canvas.cc.
References flutter::RRect::rrect.
Referenced by ~Canvas().
| void flutter::Canvas::clipRSuperellipse | ( | const RSuperellipse * | rse, |
| bool | doAntiAlias = true |
||
| ) |
Definition at line 180 of file canvas.cc.
References flutter::RSuperellipse::rsuperellipse().
Referenced by ~Canvas().
|
static |
Definition at line 23 of file canvas.cc.
References flutter::PictureRecorder::BeginRecording(), impeller::TRect< Scalar >::MakeLTRB(), and flutter::PictureRecorder::set_canvas().
| void flutter::Canvas::drawArc | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| double | startAngle, | ||
| double | sweepAngle, | ||
| bool | useCenter, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 352 of file canvas.cc.
References FML_DCHECK, and impeller::TRect< Scalar >::MakeLTRB().
Referenced by ~Canvas().
| Dart_Handle flutter::Canvas::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 | ||
| ) |
Definition at line 579 of file canvas.cc.
References error, FML_DCHECK, i, and flutter::CanvasImage::image().
Referenced by ~Canvas().
| void flutter::Canvas::drawCircle | ( | double | x, |
| double | y, | ||
| double | radius, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 336 of file canvas.cc.
References FML_DCHECK, x, and y.
Referenced by ~Canvas().
| void flutter::Canvas::drawColor | ( | uint32_t | color, |
| DlBlendMode | blend_mode | ||
| ) |
Definition at line 220 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::drawDRRect | ( | const RRect & | outer, |
| const RRect & | inner, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 291 of file canvas.cc.
References FML_DCHECK, and flutter::RRect::rrect.
Referenced by ~Canvas().
| Dart_Handle flutter::Canvas::drawImage | ( | const CanvasImage * | image, |
| double | x, | ||
| double | y, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data, | ||
| int | filterQualityIndex | ||
| ) |
Definition at line 396 of file canvas.cc.
References error, FML_DCHECK, FlutterVulkanImage::image, image, x, and y.
Referenced by ~Canvas().
| Dart_Handle flutter::Canvas::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 | ||
| ) |
Definition at line 472 of file canvas.cc.
References error, FML_DCHECK, FlutterVulkanImage::image, image, impeller::TRect< Scalar >::MakeLTRB(), and impeller::TRect< T >::Round().
Referenced by ~Canvas().
| Dart_Handle flutter::Canvas::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 | ||
| ) |
Definition at line 429 of file canvas.cc.
References error, FML_DCHECK, FlutterVulkanImage::image, image, and impeller::TRect< Scalar >::MakeLTRB().
Referenced by ~Canvas().
| void flutter::Canvas::drawLine | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 226 of file canvas.cc.
References FML_DCHECK.
Referenced by ~Canvas().
| void flutter::Canvas::drawOval | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 318 of file canvas.cc.
References FML_DCHECK, and impeller::TRect< Scalar >::MakeLTRB().
Referenced by ~Canvas().
| void flutter::Canvas::drawPaint | ( | Dart_Handle | paint_objects, |
| Dart_Handle | paint_data | ||
| ) |
Definition at line 243 of file canvas.cc.
References FML_DCHECK, flutter::DlPaint::getImageFilter(), and TRACE_EVENT0.
Referenced by ~Canvas().
| void flutter::Canvas::drawPath | ( | const CanvasPath * | path, |
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 378 of file canvas.cc.
References FML_DCHECK, and flutter::path.
Referenced by ~Canvas().
| void flutter::Canvas::drawPicture | ( | Picture * | picture | ) |
Definition at line 515 of file canvas.cc.
References flutter::Picture::display_list(), and FML_DCHECK.
Referenced by ~Canvas().
| void flutter::Canvas::drawPoints | ( | Dart_Handle | paint_objects, |
| Dart_Handle | paint_data, | ||
| DlPointMode | point_mode, | ||
| const tonic::Float32List & | points | ||
| ) |
Definition at line 530 of file canvas.cc.
References FML_DCHECK, and points.
Referenced by ~Canvas().
| void flutter::Canvas::drawRect | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 260 of file canvas.cc.
References FML_DCHECK, and impeller::TRect< Scalar >::MakeLTRB().
Referenced by ~Canvas().
| void flutter::Canvas::drawRRect | ( | const RRect & | rrect, |
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 278 of file canvas.cc.
References FML_DCHECK, and flutter::RRect::rrect.
Referenced by ~Canvas().
| void flutter::Canvas::drawRSuperellipse | ( | const RSuperellipse * | rse, |
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 305 of file canvas.cc.
References FML_DCHECK, and flutter::RSuperellipse::rsuperellipse().
Referenced by ~Canvas().
| void flutter::Canvas::drawShadow | ( | const CanvasPath * | path, |
| uint32_t | color, | ||
| double | elevation, | ||
| bool | transparentOccluder | ||
| ) |
Definition at line 635 of file canvas.cc.
References flutter::ViewportMetrics::device_pixel_ratio, and flutter::path.
Referenced by ~Canvas().
| void flutter::Canvas::drawVertices | ( | const Vertices * | vertices, |
| DlBlendMode | blend_mode, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 560 of file canvas.cc.
References FML_DCHECK.
Referenced by ~Canvas().
| void flutter::Canvas::getDestinationClipBounds | ( | Dart_Handle | rect_handle | ) |
Definition at line 198 of file canvas.cc.
References impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetRight(), and impeller::TRect< T >::GetTop().
Referenced by ~Canvas().
| void flutter::Canvas::getLocalClipBounds | ( | Dart_Handle | rect_handle | ) |
Definition at line 209 of file canvas.cc.
References impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetRight(), and impeller::TRect< T >::GetTop().
Referenced by ~Canvas().
| int flutter::Canvas::getSaveCount | ( | ) |
Definition at line 98 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::getTransform | ( | Dart_Handle | matrix4_handle | ) |
Definition at line 150 of file canvas.cc.
References i, and impeller::Matrix::m.
Referenced by ~Canvas().
| void flutter::Canvas::Invalidate | ( | ) |
Definition at line 662 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::restore | ( | ) |
| void flutter::Canvas::restoreToCount | ( | int | count | ) |
Definition at line 106 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::rotate | ( | double | radians | ) |
Definition at line 124 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::save | ( | ) |
| void flutter::Canvas::saveLayer | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| Dart_Handle | paint_objects, | ||
| Dart_Handle | paint_data | ||
| ) |
Definition at line 71 of file canvas.cc.
References FML_DCHECK, impeller::TRect< Scalar >::MakeLTRB(), and TRACE_EVENT0.
Referenced by ~Canvas().
| void flutter::Canvas::saveLayerWithoutBounds | ( | Dart_Handle | paint_objects, |
| Dart_Handle | paint_data | ||
| ) |
Definition at line 56 of file canvas.cc.
References FML_DCHECK, and TRACE_EVENT0.
Referenced by ~Canvas().
| void flutter::Canvas::scale | ( | double | sx, |
| double | sy | ||
| ) |
Definition at line 118 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::skew | ( | double | sx, |
| double | sy | ||
| ) |
Definition at line 130 of file canvas.cc.
Referenced by ~Canvas().
| void flutter::Canvas::transform | ( | const tonic::Float64List & | matrix4 | ) |
Definition at line 136 of file canvas.cc.
| void flutter::Canvas::translate | ( | double | dx, |
| double | dy | ||
| ) |
Definition at line 112 of file canvas.cc.
Referenced by ~Canvas().