#include <canvas.h>
Classes | |
struct | SaveLayerState |
Public Types | |
using | BackdropFilterProc = std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, const Matrix &effect_transform, Entity::RenderingMode rendering_mode)> |
Public Member Functions | |
Canvas (ContentContext &renderer, const RenderTarget &render_target, bool is_onscreen, bool requires_readback) | |
Canvas (ContentContext &renderer, const RenderTarget &render_target, bool is_onscreen, bool requires_readback, Rect cull_rect) | |
Canvas (ContentContext &renderer, const RenderTarget &render_target, bool is_onscreen, bool requires_readback, IRect cull_rect) | |
~Canvas ()=default | |
void | SetBackdropData (std::unordered_map< int64_t, BackdropData > backdrop_data, size_t backdrop_count) |
Update the backdrop data used to group together backdrop filters within the same layer. More... | |
std::optional< Rect > | GetLocalCoverageLimit () const |
Return the culling bounds of the current render target, or nullopt if there is no coverage. More... | |
void | Save (uint32_t total_content_depth=kMaxDepth) |
void | SaveLayer (const Paint &paint, std::optional< Rect > bounds=std::nullopt, const flutter::DlImageFilter *backdrop_filter=nullptr, ContentBoundsPromise bounds_promise=ContentBoundsPromise::kUnknown, uint32_t total_content_depth=kMaxDepth, bool can_distribute_opacity=false, std::optional< int64_t > backdrop_id=std::nullopt) |
bool | Restore () |
size_t | GetSaveCount () const |
void | RestoreToCount (size_t count) |
const Matrix & | GetCurrentTransform () const |
void | ResetTransform () |
void | Transform (const Matrix &transform) |
void | Concat (const Matrix &transform) |
void | PreConcat (const Matrix &transform) |
void | Translate (const Vector3 &offset) |
void | Scale (const Vector2 &scale) |
void | Scale (const Vector3 &scale) |
void | Skew (Scalar sx, Scalar sy) |
void | Rotate (Radians radians) |
void | DrawPath (const flutter::DlPath &path, const Paint &paint) |
void | DrawPaint (const Paint &paint) |
void | DrawLine (const Point &p0, const Point &p1, const Paint &paint, bool reuse_depth=false) |
void | DrawDashedLine (const Point &p0, const Point &p1, Scalar on_length, Scalar off_length, const Paint &paint) |
void | DrawRect (const Rect &rect, const Paint &paint) |
void | DrawOval (const Rect &rect, const Paint &paint) |
void | DrawArc (const Arc &arc, const Paint &paint) |
void | DrawRoundRect (const RoundRect &rect, const Paint &paint) |
void | DrawDiffRoundRect (const RoundRect &outer, const RoundRect &inner, const Paint &paint) |
void | DrawRoundSuperellipse (const RoundSuperellipse &rse, const Paint &paint) |
void | DrawCircle (const Point ¢er, Scalar radius, const Paint &paint) |
void | DrawPoints (const Point points[], uint32_t count, Scalar radius, const Paint &paint, PointStyle point_style) |
void | DrawImage (const std::shared_ptr< Texture > &image, Point offset, const Paint &paint, const SamplerDescriptor &sampler={}) |
void | DrawImageRect (const std::shared_ptr< Texture > &image, Rect source, Rect dest, const Paint &paint, const SamplerDescriptor &sampler={}, SourceRectConstraint src_rect_constraint=SourceRectConstraint::kFast) |
void | DrawTextFrame (const std::shared_ptr< TextFrame > &text_frame, Point position, const Paint &paint) |
void | DrawVertices (const std::shared_ptr< VerticesGeometry > &vertices, BlendMode blend_mode, const Paint &paint) |
void | DrawAtlas (const std::shared_ptr< AtlasContents > &atlas_contents, const Paint &paint) |
void | ClipGeometry (const Geometry &geometry, Entity::ClipOperation clip_op, bool is_aa=true) |
void | EndReplay () |
uint64_t | GetOpDepth () const |
uint64_t | GetMaxOpDepth () const |
bool | RequiresReadback () const |
bool | SupportsBlitToOnscreen () const |
bool | EnsureFinalMipmapGeneration () const |
Static Public Attributes | |
static constexpr uint32_t | kMaxDepth = 1 << 24 |
using impeller::Canvas::BackdropFilterProc = std::function<std::shared_ptr<FilterContents>( FilterInput::Ref, const Matrix& effect_transform, Entity::RenderingMode rendering_mode)> |
impeller::Canvas::Canvas | ( | ContentContext & | renderer, |
const RenderTarget & | render_target, | ||
bool | is_onscreen, | ||
bool | requires_readback | ||
) |
Definition at line 197 of file canvas.cc.
|
explicit |
|
explicit |
Definition at line 226 of file canvas.cc.
References impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetRight(), impeller::TRect< T >::GetTop(), and impeller::TRect< Scalar >::MakeLTRB().
|
default |
void impeller::Canvas::ClipGeometry | ( | const Geometry & | geometry, |
Entity::ClipOperation | clip_op, | ||
bool | is_aa = true |
||
) |
Definition at line 826 of file canvas.cc.
References impeller::EntityPassClipStack::ReplayResult::clip_contents, impeller::EntityPassClipStack::ClipStateResult::clip_did_change, impeller::EntityPassClipStack::CurrentClipCoverage(), impeller::Geometry::GetCoverage(), GetCurrentTransform(), impeller::EntityPassClipStack::GetLastReplayResult(), impeller::Geometry::GetPositionBuffer(), impeller::Geometry::IsAxisAlignedRect(), impeller::Matrix::MakeTranslation(), impeller::EntityPassClipStack::RecordClip(), impeller::ClipContents::Render(), impeller::Entity::SetClipDepth(), impeller::ClipContents::SetClipOperation(), impeller::ClipContents::SetGeometry(), impeller::Entity::SetTransform(), and impeller::EntityPassClipStack::ClipStateResult::should_render.
Referenced by impeller::DlDispatcherBase::clipOval(), impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::clipRect(), impeller::DlDispatcherBase::clipRoundRect(), and impeller::DlDispatcherBase::clipRoundSuperellipse().
void impeller::Canvas::Concat | ( | const Matrix & | transform | ) |
Definition at line 255 of file canvas.cc.
References GetCurrentTransform(), and transform.
Referenced by DrawTextFrame(), Rotate(), Scale(), Skew(), Transform(), and Translate().
Definition at line 678 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::StrokeParameters::cap, DrawOval(), impeller::TRect< T >::Expand(), GetCurrentTransform(), impeller::Arc::GetOvalBounds(), impeller::TRect< T >::GetSize(), impeller::Arc::GetStart(), impeller::Arc::GetSweep(), impeller::Arc::IncludeCenter(), impeller::Arc::IsFullCircle(), impeller::TRect< T >::IsSquare(), impeller::Paint::kFill, impeller::kRound, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, impeller::Paint::style, and impeller::StrokeParameters::width.
Referenced by impeller::DlDispatcherBase::drawArc().
void impeller::Canvas::DrawAtlas | ( | const std::shared_ptr< AtlasContents > & | atlas_contents, |
const Paint & | paint | ||
) |
Definition at line 1117 of file canvas.cc.
References impeller::Color::alpha, impeller::Paint::blend_mode, impeller::Paint::color, GetCurrentTransform(), impeller::Entity::SetBlendMode(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), and impeller::Paint::WithFilters().
Referenced by impeller::DlDispatcherBase::drawAtlas().
Definition at line 803 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::Paint::kStroke, impeller::TRect< Scalar >::MakeOriginSize(), impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, impeller::Paint::style, and impeller::StrokeParameters::width.
Referenced by impeller::DlDispatcherBase::drawCircle(), and DrawOval().
void impeller::Canvas::DrawDashedLine | ( | const Point & | p0, |
const Point & | p1, | ||
Scalar | on_length, | ||
Scalar | off_length, | ||
const Paint & | paint | ||
) |
Definition at line 605 of file canvas.cc.
References impeller::Paint::blend_mode, DrawLine(), GetCurrentTransform(), impeller::TPoint< T >::GetDistance(), impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), and impeller::Paint::stroke.
Referenced by impeller::DlDispatcherBase::drawDashedLine().
void impeller::Canvas::DrawDiffRoundRect | ( | const RoundRect & | outer, |
const RoundRect & | inner, | ||
const Paint & | paint | ||
) |
Definition at line 765 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::Paint::kFill, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, and impeller::Paint::style.
Referenced by impeller::DlDispatcherBase::drawDiffRoundRect().
void impeller::Canvas::DrawImage | ( | const std::shared_ptr< Texture > & | image, |
Point | offset, | ||
const Paint & | paint, | ||
const SamplerDescriptor & | sampler = {} |
||
) |
Definition at line 925 of file canvas.cc.
References DrawImageRect(), impeller::TRect< Scalar >::MakeSize(), and impeller::TRect< T >::Shift().
void impeller::Canvas::DrawImageRect | ( | const std::shared_ptr< Texture > & | image, |
Rect | source, | ||
Rect | dest, | ||
const Paint & | paint, | ||
const SamplerDescriptor & | sampler = {} , |
||
SourceRectConstraint | src_rect_constraint = SourceRectConstraint::kFast |
||
) |
Definition at line 939 of file canvas.cc.
References impeller::Color::alpha, impeller::Paint::blend_mode, impeller::Paint::color, GetCurrentTransform(), impeller::TRect< T >::GetHeight(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetTop(), impeller::TRect< T >::GetWidth(), impeller::Paint::HasColorFilter(), impeller::TRect< T >::Intersection(), impeller::TRect< T >::IsEmpty(), impeller::TSize< T >::IsEmpty(), impeller::kStrict, impeller::TextureContents::MakeRect(), impeller::TRect< Scalar >::MakeSize(), impeller::Matrix::MakeTranslateScale(), impeller::Paint::mask_blur_descriptor, impeller::Entity::SetBlendMode(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), impeller::TRect< T >::TransformBounds(), and impeller::Paint::WithFilters().
Referenced by DrawImage(), impeller::DlDispatcherBase::drawImageRect(), and impeller::NinePatchConverter::DrawNinePatch().
void impeller::Canvas::DrawLine | ( | const Point & | p0, |
const Point & | p1, | ||
const Paint & | paint, | ||
bool | reuse_depth = false |
||
) |
Definition at line 583 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::Paint::color, impeller::Paint::color_filter, impeller::Paint::color_source, impeller::ContentContext::GetContext(), GetCurrentTransform(), impeller::Paint::image_filter, impeller::Paint::invert_colors, impeller::LineContents::Make(), impeller::Paint::mask_blur_descriptor, impeller::Entity::SetBlendMode(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), and impeller::Paint::stroke.
Referenced by DrawDashedLine(), impeller::DlDispatcherBase::drawLine(), impeller::DlDispatcherBase::drawPoints(), and impeller::DlDispatcherBase::SimplifyOrDrawPath().
Definition at line 649 of file canvas.cc.
References impeller::Paint::blend_mode, DrawCircle(), impeller::TRect< T >::GetCenter(), GetCurrentTransform(), impeller::TRect< T >::GetSize(), impeller::TRect< T >::GetWidth(), impeller::TRect< T >::IsSquare(), impeller::Paint::kFill, impeller::Paint::kStroke, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, impeller::Paint::style, and impeller::StrokeParameters::width.
Referenced by DrawArc(), impeller::DlDispatcherBase::drawOval(), and impeller::DlDispatcherBase::SimplifyOrDrawPath().
void impeller::Canvas::DrawPaint | ( | const Paint & | paint | ) |
Definition at line 340 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::Entity::SetBlendMode(), and impeller::Entity::SetTransform().
Referenced by impeller::DlDispatcherBase::drawColor(), and impeller::DlDispatcherBase::drawPaint().
void impeller::Canvas::DrawPath | ( | const flutter::DlPath & | path, |
const Paint & | paint | ||
) |
Definition at line 326 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::Paint::kFill, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, and impeller::Paint::style.
Referenced by DrawTextFrame(), and impeller::DlDispatcherBase::SimplifyOrDrawPath().
void impeller::Canvas::DrawPoints | ( | const Point | points[], |
uint32_t | count, | ||
Scalar | radius, | ||
const Paint & | paint, | ||
PointStyle | point_style | ||
) |
Definition at line 907 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::kRound, points, impeller::Entity::SetBlendMode(), and impeller::Entity::SetTransform().
Referenced by impeller::DlDispatcherBase::drawPoints().
Definition at line 631 of file canvas.cc.
References impeller::Paint::blend_mode, GetCurrentTransform(), impeller::Paint::kStroke, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, and impeller::Paint::style.
Referenced by impeller::DlDispatcherBase::drawRect(), and impeller::DlDispatcherBase::SimplifyOrDrawPath().
Definition at line 733 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::RoundRect::GetBounds(), GetCurrentTransform(), impeller::RoundRect::GetRadii(), impeller::Paint::kFill, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, and impeller::Paint::style.
Referenced by impeller::DlDispatcherBase::drawRoundRect(), and impeller::DlDispatcherBase::SimplifyOrDrawPath().
void impeller::Canvas::DrawRoundSuperellipse | ( | const RoundSuperellipse & | rse, |
const Paint & | paint | ||
) |
Definition at line 781 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::RoundSuperellipse::GetBounds(), GetCurrentTransform(), impeller::RoundSuperellipse::GetRadii(), impeller::Paint::kFill, impeller::Entity::SetBlendMode(), impeller::Entity::SetTransform(), impeller::Paint::stroke, and impeller::Paint::style.
Referenced by impeller::DlDispatcherBase::drawRoundSuperellipse(), and impeller::testing::TEST_P().
void impeller::Canvas::DrawTextFrame | ( | const std::shared_ptr< TextFrame > & | text_frame, |
Point | position, | ||
const Paint & | paint | ||
) |
Definition at line 1660 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::Paint::color, Concat(), DrawPath(), GetCurrentTransform(), impeller::Matrix::GetMaxBasisLengthXY(), impeller::kMaxTextScale, impeller::Paint::kStroke, impeller::Matrix::MakeTranslation(), impeller::Paint::mask_blur_descriptor, Restore(), Save(), impeller::Entity::SetBlendMode(), impeller::Entity::SetClipDepth(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), impeller::Paint::stroke, impeller::Paint::style, and impeller::Paint::WithFilters().
Referenced by impeller::DlDispatcherBase::drawTextFrame().
void impeller::Canvas::DrawVertices | ( | const std::shared_ptr< VerticesGeometry > & | vertices, |
BlendMode | blend_mode, | ||
const Paint & | paint | ||
) |
Definition at line 1004 of file canvas.cc.
References impeller::Color::alpha, impeller::Paint::blend_mode, impeller::Paint::color, impeller::Paint::color_source, GetCurrentTransform(), impeller::kDst, impeller::TRect< Scalar >::MakeOriginSize(), impeller::Geometry::MakeRect(), impeller::TRect< Scalar >::MakeXYWH(), impeller::TRect< Scalar >::Round(), impeller::Entity::SetBlendMode(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), impeller::skia_conversions::ToSamplerDescriptor(), impeller::Color::WithAlpha(), and impeller::Paint::WithFilters().
Referenced by impeller::CanvasDlDispatcher::drawVertices(), and impeller::testing::TEST_P().
void impeller::Canvas::EndReplay | ( | ) |
Definition at line 2086 of file canvas.cc.
References VALIDATION_LOG.
Referenced by impeller::CanvasDlDispatcher::FinishRecording(), and impeller::testing::TEST_P().
bool impeller::Canvas::EnsureFinalMipmapGeneration | ( | ) | const |
For picture snapshots we need addition steps to verify that final mipmaps are generated.
Definition at line 2068 of file canvas.cc.
const Matrix & impeller::Canvas::GetCurrentTransform | ( | ) | const |
Definition at line 271 of file canvas.cc.
Referenced by ClipGeometry(), Concat(), DrawArc(), DrawAtlas(), DrawCircle(), DrawDashedLine(), DrawDiffRoundRect(), impeller::DlDispatcherBase::drawDisplayList(), DrawImageRect(), DrawLine(), DrawOval(), DrawPaint(), DrawPath(), DrawPoints(), DrawRect(), DrawRoundRect(), DrawRoundSuperellipse(), impeller::DlDispatcherBase::drawShadow(), DrawTextFrame(), DrawVertices(), and PreConcat().
std::optional< Rect > impeller::Canvas::GetLocalCoverageLimit | ( | ) | const |
Return the culling bounds of the current render target, or nullopt if there is no coverage.
Definition at line 1200 of file canvas.cc.
References impeller::EntityPassClipStack::CurrentClipCoverage(), impeller::RenderTarget::GetRenderTargetSize(), impeller::EntityPassClipStack::HasCoverage(), impeller::TRect< T >::Intersection(), impeller::TRect< Scalar >::MakeOriginSize(), and impeller::TRect< Scalar >::MakeSize().
Referenced by impeller::DlDispatcherBase::drawDisplayList(), and SaveLayer().
|
inline |
Definition at line 263 of file canvas.h.
Referenced by impeller::CanvasDlDispatcher::saveLayer().
|
inline |
Definition at line 261 of file canvas.h.
Referenced by impeller::CanvasDlDispatcher::saveLayer().
size_t impeller::Canvas::GetSaveCount | ( | ) | const |
Definition at line 310 of file canvas.cc.
Referenced by impeller::DlDispatcherBase::drawDisplayList(), and RestoreToCount().
void impeller::Canvas::PreConcat | ( | const Matrix & | transform | ) |
Definition at line 259 of file canvas.cc.
References GetCurrentTransform(), and transform.
Referenced by impeller::DlDispatcherBase::drawShadow().
|
inline |
void impeller::Canvas::ResetTransform | ( | ) |
Definition at line 263 of file canvas.cc.
Referenced by impeller::DlDispatcherBase::transformReset().
bool impeller::Canvas::Restore | ( | ) |
Definition at line 1469 of file canvas.cc.
References impeller::Paint::blend_mode, impeller::EntityPassClipStack::ClipStateResult::clip_did_change, impeller::Canvas::SaveLayerState::coverage, impeller::EntityPassClipStack::CurrentClipCoverage(), impeller::Entity::GetBlendMode(), impeller::Entity::GetContents(), impeller::Entity::GetCoverage(), impeller::ContentContext::GetDeviceCapabilities(), impeller::TRect< T >::GetOrigin(), impeller::Entity::GetTransform(), impeller::Matrix::Invert(), impeller::Entity::kLastPipelineBlendMode, impeller::kSrc, impeller::Entity::kSubpassAppendSnapshotTransform, impeller::Entity::kSubpassPrependSnapshotTransform, impeller::FilterInput::Make(), impeller::ColorFilterContents::MakeBlend(), impeller::Matrix::MakeTranslation(), impeller::Canvas::SaveLayerState::paint, impeller::EntityPassClipStack::PopSubpass(), impeller::EntityPassClipStack::RecordRestore(), impeller::Entity::Render(), impeller::Entity::SetBlendMode(), impeller::Entity::SetClipDepth(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), impeller::EntityPassClipStack::ClipStateResult::should_render, and impeller::Capabilities::SupportsFramebufferFetch().
Referenced by impeller::DlDispatcherBase::drawShadow(), DrawTextFrame(), impeller::DlDispatcherBase::restore(), and RestoreToCount().
void impeller::Canvas::RestoreToCount | ( | size_t | count | ) |
Definition at line 318 of file canvas.cc.
References GetSaveCount(), and Restore().
Referenced by impeller::DlDispatcherBase::drawDisplayList().
void impeller::Canvas::Rotate | ( | Radians | radians | ) |
Definition at line 291 of file canvas.cc.
References Concat(), and impeller::Matrix::MakeRotationZ().
Referenced by impeller::DlDispatcherBase::rotate().
void impeller::Canvas::Save | ( | uint32_t | total_content_depth = kMaxDepth | ) |
Definition at line 1183 of file canvas.cc.
References impeller::Entity::kDirect, and impeller::CanvasStackEntry::transform.
Referenced by impeller::DlDispatcherBase::drawDisplayList(), impeller::DlDispatcherBase::drawShadow(), DrawTextFrame(), impeller::DlDispatcherBase::save(), and SaveLayer().
void impeller::Canvas::SaveLayer | ( | const Paint & | paint, |
std::optional< Rect > | bounds = std::nullopt , |
||
const flutter::DlImageFilter * | backdrop_filter = nullptr , |
||
ContentBoundsPromise | bounds_promise = ContentBoundsPromise::kUnknown , |
||
uint32_t | total_content_depth = kMaxDepth , |
||
bool | can_distribute_opacity = false , |
||
std::optional< int64_t > | backdrop_id = std::nullopt |
||
) |
Definition at line 1231 of file canvas.cc.
References impeller::BackdropData::all_filters_equal, impeller::Color::alpha, impeller::BackdropData::backdrop_count, impeller::Color::BlackTransparent(), impeller::Paint::blend_mode, impeller::Paint::CanApplyOpacityPeephole(), impeller::CanvasStackEntry::clip_depth, impeller::CanvasStackEntry::clip_height, impeller::Paint::color, impeller::Paint::color_filter, impeller::ComputeSaveLayerCoverage(), impeller::CanvasStackEntry::did_round_out, impeller::ContentContext::GetContext(), impeller::ContentContext::GetDeviceCapabilities(), GetLocalCoverageLimit(), impeller::Paint::image_filter, impeller::Matrix::Invert(), impeller::Entity::IsBlendModeDestructive(), impeller::kMayClipContents, impeller::Entity::kSubpassAppendSnapshotTransform, impeller::Entity::kSubpassPrependSnapshotTransform, impeller::FilterInput::Make(), impeller::TRect< Scalar >::MakeMaximum(), impeller::TextureContents::MakeRect(), impeller::Matrix::MakeTranslation(), impeller::EntityPassClipStack::PushSubpass(), impeller::Entity::Render(), impeller::CanvasStackEntry::rendering_mode, impeller::TRect< T >::RoundOut(), impeller::Snapshot::sampler_descriptor, Save(), impeller::Entity::SetBlendMode(), impeller::Entity::SetClipDepth(), impeller::Entity::SetContents(), impeller::Entity::SetTransform(), impeller::BackdropData::shared_filter_snapshot, subpass_size, impeller::Capabilities::SupportsFramebufferFetch(), impeller::Snapshot::texture, impeller::BackdropData::texture_slot, impeller::CanvasStackEntry::transform, impeller::Snapshot::transform, impeller::Paint::WithImageFilter(), and impeller::WrapInput().
Referenced by impeller::DlDispatcherBase::drawDisplayList(), and impeller::DlDispatcherBase::saveLayer().
void impeller::Canvas::Scale | ( | const Vector2 & | scale | ) |
Definition at line 279 of file canvas.cc.
References Concat(), and impeller::Matrix::MakeScale().
Referenced by impeller::DlDispatcherBase::scale().
void impeller::Canvas::Scale | ( | const Vector3 & | scale | ) |
Definition at line 283 of file canvas.cc.
References Concat(), and impeller::Matrix::MakeScale().
void impeller::Canvas::SetBackdropData | ( | std::unordered_map< int64_t, BackdropData > | backdrop_data, |
size_t | backdrop_count | ||
) |
Update the backdrop data used to group together backdrop filters within the same layer.
Definition at line 1882 of file canvas.cc.
Referenced by impeller::CanvasDlDispatcher::SetBackdropData().
Definition at line 287 of file canvas.cc.
References Concat(), and impeller::Matrix::MakeSkew().
Referenced by impeller::DlDispatcherBase::skew().
void impeller::Canvas::Transform | ( | const Matrix & | transform | ) |
Definition at line 267 of file canvas.cc.
References Concat(), and transform.
Referenced by impeller::DlDispatcherBase::transformFullPerspective(), and impeller::DlDispatcherBase::transformReset().
void impeller::Canvas::Translate | ( | const Vector3 & | offset | ) |
Definition at line 275 of file canvas.cc.
References Concat(), and impeller::Matrix::MakeTranslation().
Referenced by impeller::DlDispatcherBase::translate().
|
staticconstexpr |