A wrapper around data provided by a drawAtlas call. More...
#include <dl_atlas_geometry.h>
Public Member Functions | |
| DlAtlasGeometry (const std::shared_ptr< Texture > &atlas, const SkRSXform *xform, const flutter::DlRect *tex, const flutter::DlColor *colors, size_t count, BlendMode mode, const SamplerDescriptor &sampling, std::optional< Rect > cull_rect) | |
| ~DlAtlasGeometry () | |
| bool | ShouldUseBlend () const override |
| Whether the blend shader should be used. More... | |
| bool | ShouldSkip () const override |
| VertexBuffer | CreateSimpleVertexBuffer (HostBuffer &host_buffer) const override |
| VertexBuffer | CreateBlendVertexBuffer (HostBuffer &host_buffer) const override |
| Rect | ComputeBoundingBox () const override |
| std::shared_ptr< Texture > | GetAtlas () const override |
| const SamplerDescriptor & | GetSamplerDescriptor () const override |
| BlendMode | GetBlendMode () const override |
A wrapper around data provided by a drawAtlas call.
Definition at line 18 of file dl_atlas_geometry.h.
| impeller::DlAtlasGeometry::DlAtlasGeometry | ( | const std::shared_ptr< Texture > & | atlas, |
| const SkRSXform * | xform, | ||
| const flutter::DlRect * | tex, | ||
| const flutter::DlColor * | colors, | ||
| size_t | count, | ||
| BlendMode | mode, | ||
| const SamplerDescriptor & | sampling, | ||
| std::optional< Rect > | cull_rect | ||
| ) |
Definition at line 18 of file dl_atlas_geometry.cc.
|
default |
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 45 of file dl_atlas_geometry.cc.
References impeller::TRect< Scalar >::MakeSize(), impeller::skia_conversions::ToRSXForm(), impeller::TRect< T >::TransformBounds(), and impeller::TRect< T >::Union().
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 107 of file dl_atlas_geometry.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetTransformedPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), offset, impeller::Color::Premultiply(), impeller::skia_conversions::ToColor(), impeller::skia_conversions::ToRSXForm(), and impeller::VertexBuffer::vertex_buffer.
Referenced by impeller::testing::TEST_P().
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 72 of file dl_atlas_geometry.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetTransformedPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), offset, impeller::skia_conversions::ToRSXForm(), and impeller::VertexBuffer::vertex_buffer.
Referenced by impeller::testing::TEST_P().
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 60 of file dl_atlas_geometry.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 68 of file dl_atlas_geometry.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 64 of file dl_atlas_geometry.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 41 of file dl_atlas_geometry.cc.
References impeller::kClear, and ShouldUseBlend().
Referenced by impeller::testing::TEST_P().
|
overridevirtual |
Whether the blend shader should be used.
Implements impeller::AtlasGeometry.
Definition at line 37 of file dl_atlas_geometry.cc.
References impeller::kSource.
Referenced by ShouldSkip(), and impeller::testing::TEST_P().