An atlas geometry that adapts for drawImageRect. More...
#include <atlas_contents.h>
Public Member Functions | |
DrawImageRectAtlasGeometry (std::shared_ptr< Texture > texture, const Rect &source, const Rect &destination, const Color &color, BlendMode blend_mode, const SamplerDescriptor &desc, bool use_strict_src_rect=false) | |
~DrawImageRectAtlasGeometry () | |
bool | ShouldUseBlend () const override |
bool | ShouldSkip () const override |
VertexBuffer | CreateSimpleVertexBuffer (HostBuffer &host_buffer) const override |
VertexBuffer | CreateBlendVertexBuffer (HostBuffer &host_buffer) const override |
Rect | ComputeBoundingBox () const override |
const std::shared_ptr< Texture > & | GetAtlas () const override |
const SamplerDescriptor & | GetSamplerDescriptor () const override |
BlendMode | GetBlendMode () const override |
bool | ShouldInvertBlendMode () const override |
std::optional< Rect > | GetStrictSrcRect () const override |
The source rect of the draw if a strict source rect should be applied, or nullopt. More... | |
An atlas geometry that adapts for drawImageRect.
Definition at line 51 of file atlas_contents.h.
impeller::DrawImageRectAtlasGeometry::DrawImageRectAtlasGeometry | ( | std::shared_ptr< Texture > | texture, |
const Rect & | source, | ||
const Rect & | destination, | ||
const Color & | color, | ||
BlendMode | blend_mode, | ||
const SamplerDescriptor & | desc, | ||
bool | use_strict_src_rect = false |
||
) |
Definition at line 20 of file atlas_contents.cc.
|
default |
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 107 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 76 of file atlas_contents.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), impeller::Color::Premultiply(), impeller::TRect< T >::Project(), and impeller::VertexBuffer::vertex_buffer.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 46 of file atlas_contents.cc.
References buffer_view, data, impeller::HostBuffer::Emplace(), impeller::TRect< T >::GetPoints(), impeller::kNone, impeller::TRect< Scalar >::MakeSize(), impeller::TRect< T >::Project(), and impeller::VertexBuffer::vertex_buffer.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 111 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 120 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 115 of file atlas_contents.cc.
|
overridevirtual |
The source rect of the draw if a strict source rect should be applied, or nullopt.
See also Canvas::AttemptColorFilterOptimization
Reimplemented from impeller::AtlasGeometry.
Definition at line 128 of file atlas_contents.cc.
|
overridevirtual |
Reimplemented from impeller::AtlasGeometry.
Definition at line 124 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 42 of file atlas_contents.cc.
|
overridevirtual |
Implements impeller::AtlasGeometry.
Definition at line 38 of file atlas_contents.cc.