Flutter Engine
flutter::MutatorsStack Class Reference

#include <embedded_views.h>

Public Member Functions

 MutatorsStack ()=default
 
void PushClipRect (const SkRect &rect)
 
void PushClipRRect (const SkRRect &rrect)
 
void PushClipPath (const SkPath &path)
 
void PushTransform (const SkMatrix &matrix)
 
void PushOpacity (const int &alpha)
 
void Pop ()
 
const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator Top () const
 
const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator Bottom () const
 
const std::vector< std::shared_ptr< Mutator > >::const_iterator Begin () const
 
const std::vector< std::shared_ptr< Mutator > >::const_iterator End () const
 
bool is_empty () const
 
bool operator== (const MutatorsStack &other) const
 
bool operator== (const std::vector< Mutator > &other) const
 
bool operator!= (const MutatorsStack &other) const
 
bool operator!= (const std::vector< Mutator > &other) const
 

Detailed Description

Definition at line 127 of file embedded_views.h.

Constructor & Destructor Documentation

◆ MutatorsStack()

flutter::MutatorsStack::MutatorsStack ( )
default

Member Function Documentation

◆ Begin()

const std::vector< std::shared_ptr< Mutator > >::const_iterator flutter::MutatorsStack::Begin ( ) const

◆ Bottom()

const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator flutter::MutatorsStack::Bottom ( ) const

Definition at line 49 of file embedded_views.cc.

Referenced by flutter::FlutterPlatformViewsController::GetCurrentCanvases, and flutter::testing::TEST().

49  {
50  return vector_.rbegin();
51 };

◆ End()

const std::vector< std::shared_ptr< Mutator > >::const_iterator flutter::MutatorsStack::End ( ) const

◆ is_empty()

bool flutter::MutatorsStack::is_empty ( ) const
inline

Definition at line 158 of file embedded_views.h.

Referenced by flutter::testing::TEST().

158 { return vector_.empty(); }

◆ operator!=() [1/2]

bool flutter::MutatorsStack::operator!= ( const MutatorsStack other) const
inline

Definition at line 184 of file embedded_views.h.

References flutter::Mutator::operator==().

184  {
185  return !operator==(other);
186  }
bool operator==(const MutatorsStack &other) const

◆ operator!=() [2/2]

bool flutter::MutatorsStack::operator!= ( const std::vector< Mutator > &  other) const
inline

Definition at line 188 of file embedded_views.h.

References flutter::Mutator::operator==().

188  {
189  return !operator==(other);
190  }
bool operator==(const MutatorsStack &other) const

◆ operator==() [1/2]

bool flutter::MutatorsStack::operator== ( const MutatorsStack other) const
inline

Definition at line 160 of file embedded_views.h.

160  {
161  if (vector_.size() != other.vector_.size()) {
162  return false;
163  }
164  for (size_t i = 0; i < vector_.size(); i++) {
165  if (*vector_[i] != *other.vector_[i]) {
166  return false;
167  }
168  }
169  return true;
170  }

◆ operator==() [2/2]

bool flutter::MutatorsStack::operator== ( const std::vector< Mutator > &  other) const
inline

Definition at line 172 of file embedded_views.h.

172  {
173  if (vector_.size() != other.size()) {
174  return false;
175  }
176  for (size_t i = 0; i < vector_.size(); i++) {
177  if (*vector_[i] != other[i]) {
178  return false;
179  }
180  }
181  return true;
182  }

◆ Pop()

◆ PushClipPath()

void flutter::MutatorsStack::PushClipPath ( const SkPath &  path)

Definition at line 24 of file embedded_views.cc.

References flutter::path.

Referenced by flutter::ClipPathLayer::Preroll(), and flutter::testing::TEST().

24  {
25  std::shared_ptr<Mutator> element = std::make_shared<Mutator>(path);
26  vector_.push_back(element);
27 };
DEF_SWITCHES_START snapshot asset path
Definition: switches.h:32

◆ PushClipRect()

void flutter::MutatorsStack::PushClipRect ( const SkRect &  rect)

Definition at line 14 of file embedded_views.cc.

Referenced by flutter::ClipRectLayer::Preroll(), and flutter::testing::TEST().

14  {
15  std::shared_ptr<Mutator> element = std::make_shared<Mutator>(rect);
16  vector_.push_back(element);
17 };

◆ PushClipRRect()

void flutter::MutatorsStack::PushClipRRect ( const SkRRect &  rrect)

Definition at line 19 of file embedded_views.cc.

Referenced by flutter::ClipRRectLayer::Preroll(), and flutter::testing::TEST().

19  {
20  std::shared_ptr<Mutator> element = std::make_shared<Mutator>(rrect);
21  vector_.push_back(element);
22 };

◆ PushOpacity()

void flutter::MutatorsStack::PushOpacity ( const int &  alpha)

Definition at line 34 of file embedded_views.cc.

Referenced by flutter::OpacityLayer::Preroll(), and flutter::testing::TEST().

34  {
35  std::shared_ptr<Mutator> element = std::make_shared<Mutator>(alpha);
36  vector_.push_back(element);
37 };

◆ PushTransform()

void flutter::MutatorsStack::PushTransform ( const SkMatrix &  matrix)

Definition at line 29 of file embedded_views.cc.

Referenced by flutter::TransformLayer::Preroll(), flutter::OpacityLayer::Preroll(), and flutter::testing::TEST().

29  {
30  std::shared_ptr<Mutator> element = std::make_shared<Mutator>(matrix);
31  vector_.push_back(element);
32 };

◆ Top()

const std::vector< std::shared_ptr< Mutator > >::const_reverse_iterator flutter::MutatorsStack::Top ( ) const

Definition at line 44 of file embedded_views.cc.

Referenced by flutter::FlutterPlatformViewsController::GetCurrentCanvases, and flutter::testing::TEST().

44  {
45  return vector_.rend();
46 };

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