Flutter Engine
 
Loading...
Searching...
No Matches
flutter::testing::ImageSizeTextBlobInspector Class Reference
Inheritance diagram for flutter::testing::ImageSizeTextBlobInspector:
flutter::DlOpReceiver flutter::IgnoreAttributeDispatchHelper flutter::IgnoreTransformDispatchHelper flutter::IgnoreClipDispatchHelper flutter::IgnoreDrawDispatchHelper

Public Member Functions

void drawImage (const sk_sp< DlImage > image, const DlPoint &point, DlImageSampling sampling, bool render_with_attributes) override
 
void drawVertices (const std::shared_ptr< DlVertices > &vertices, DlBlendMode mode) override
 
void drawText (const std::shared_ptr< DlText > &text, DlScalar x, DlScalar y) override
 
const std::vector< DlSize > & sizes ()
 
const std::vector< std::shared_ptr< DlText > > texts ()
 
const std::vector< DlPointtext_positions ()
 
- Public Member Functions inherited from flutter::DlOpReceiver
virtual void save (uint32_t total_content_depth)
 
virtual void saveLayer (const DlRect &bounds, const SaveLayerOptions &options, uint32_t total_content_depth, DlBlendMode max_content_blend_mode, const DlImageFilter *backdrop=nullptr, std::optional< int64_t > backdrop_id=std::nullopt)
 
virtual void saveLayer (const DlRect *bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr, std::optional< int64_t > backdrop_id=std::nullopt) final
 

Additional Inherited Members

- Static Public Attributes inherited from flutter::DlOpReceiver
static constexpr int kMaxDrawPointsCount = ((1 << 29) - 1)
 

Detailed Description

Definition at line 135 of file performance_overlay_layer_unittests.cc.

Member Function Documentation

◆ drawImage()

void flutter::testing::ImageSizeTextBlobInspector::drawImage ( const sk_sp< DlImage image,
const DlPoint point,
DlImageSampling  sampling,
bool  render_with_attributes 
)
inlineoverridevirtual

Implements flutter::DlOpReceiver.

Definition at line 141 of file performance_overlay_layer_unittests.cc.

144 {
145 // We no longer render performance overlays with temp images.
147 }
#define FML_UNREACHABLE()
Definition logging.h:128

References FML_UNREACHABLE.

◆ drawText()

void flutter::testing::ImageSizeTextBlobInspector::drawText ( const std::shared_ptr< DlText > &  text,
DlScalar  x,
DlScalar  y 
)
inlineoverridevirtual

Implements flutter::DlOpReceiver.

Definition at line 154 of file performance_overlay_layer_unittests.cc.

156 {
157 texts_.push_back(text);
158 text_positions_.push_back(DlPoint(x, y));
159 }
int32_t x
std::u16string text
double y
impeller::Point DlPoint

References text, x, and y.

◆ drawVertices()

void flutter::testing::ImageSizeTextBlobInspector::drawVertices ( const std::shared_ptr< DlVertices > &  vertices,
DlBlendMode  mode 
)
inlineoverridevirtual

Implements flutter::DlOpReceiver.

Definition at line 149 of file performance_overlay_layer_unittests.cc.

150 {
151 sizes_.push_back(vertices->GetBounds().GetSize());
152 }

◆ sizes()

const std::vector< DlSize > & flutter::testing::ImageSizeTextBlobInspector::sizes ( )
inline

Definition at line 161 of file performance_overlay_layer_unittests.cc.

161{ return sizes_; }

Referenced by flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ text_positions()

const std::vector< DlPoint > flutter::testing::ImageSizeTextBlobInspector::text_positions ( )
inline

Definition at line 163 of file performance_overlay_layer_unittests.cc.

163{ return text_positions_; }

Referenced by flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ texts()

const std::vector< std::shared_ptr< DlText > > flutter::testing::ImageSizeTextBlobInspector::texts ( )
inline

Definition at line 162 of file performance_overlay_layer_unittests.cc.

162{ return texts_; }

Referenced by flutter::testing::TEST_F(), and flutter::testing::TEST_F().


The documentation for this class was generated from the following file: