Flutter Engine
 
Loading...
Searching...
No Matches
flutter::SaveLayerOptions Class Reference

#include <display_list.h>

Public Member Functions

 SaveLayerOptions ()
 
 SaveLayerOptions (const SaveLayerOptions &options)
 
 SaveLayerOptions (const SaveLayerOptions *options)
 
SaveLayerOptions without_optimizations () const
 
bool renders_with_attributes () const
 
SaveLayerOptions with_renders_with_attributes () const
 
bool can_distribute_opacity () const
 
SaveLayerOptions with_can_distribute_opacity () const
 
bool bounds_from_caller () const
 
SaveLayerOptions with_bounds_from_caller () const
 
SaveLayerOptions without_bounds_from_caller () const
 
bool bounds_were_calculated () const
 
bool content_is_clipped () const
 
SaveLayerOptions with_content_is_clipped () const
 
bool contains_backdrop_filter () const
 
SaveLayerOptions with_contains_backdrop_filter () const
 
bool content_is_unbounded () const
 
SaveLayerOptions with_content_is_unbounded () const
 
SaveLayerOptionsoperator= (const SaveLayerOptions &other)
 
bool operator== (const SaveLayerOptions &other) const
 

Static Public Attributes

static const SaveLayerOptions kWithAttributes
 
static const SaveLayerOptions kNoAttributes = SaveLayerOptions()
 

Detailed Description

Definition at line 167 of file display_list.h.

Constructor & Destructor Documentation

◆ SaveLayerOptions() [1/3]

flutter::SaveLayerOptions::SaveLayerOptions ( )
inline

Definition at line 172 of file display_list.h.

172: flags_(0) {}

◆ SaveLayerOptions() [2/3]

flutter::SaveLayerOptions::SaveLayerOptions ( const SaveLayerOptions options)
inline

Definition at line 173 of file display_list.h.

173: flags_(options.flags_) {}

◆ SaveLayerOptions() [3/3]

flutter::SaveLayerOptions::SaveLayerOptions ( const SaveLayerOptions options)
inlineexplicit

Definition at line 174 of file display_list.h.

175 : flags_(options->flags_) {}

Member Function Documentation

◆ bounds_from_caller()

bool flutter::SaveLayerOptions::bounds_from_caller ( ) const
inline

◆ bounds_were_calculated()

bool flutter::SaveLayerOptions::bounds_were_calculated ( ) const
inline

Definition at line 212 of file display_list.h.

212{ return !fBoundsFromCaller; }

References fBoundsFromCaller.

◆ can_distribute_opacity()

bool flutter::SaveLayerOptions::can_distribute_opacity ( ) const
inline

◆ contains_backdrop_filter()

bool flutter::SaveLayerOptions::contains_backdrop_filter ( ) const
inline

Definition at line 225 of file display_list.h.

225{ return fHasBackdropFilter; }

References fHasBackdropFilter.

Referenced by std::operator<<().

◆ content_is_clipped()

bool flutter::SaveLayerOptions::content_is_clipped ( ) const
inline

◆ content_is_unbounded()

bool flutter::SaveLayerOptions::content_is_unbounded ( ) const
inline

◆ operator=()

SaveLayerOptions & flutter::SaveLayerOptions::operator= ( const SaveLayerOptions other)
inline

Definition at line 239 of file display_list.h.

239 {
240 flags_ = other.flags_;
241 return *this;
242 }

References flags_.

◆ operator==()

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

Definition at line 243 of file display_list.h.

243 {
244 return flags_ == other.flags_;
245 }

References flags_.

◆ renders_with_attributes()

bool flutter::SaveLayerOptions::renders_with_attributes ( ) const
inline

◆ with_bounds_from_caller()

SaveLayerOptions flutter::SaveLayerOptions::with_bounds_from_caller ( ) const
inline

Definition at line 202 of file display_list.h.

202 {
203 SaveLayerOptions options(this);
204 options.fBoundsFromCaller = true;
205 return options;
206 }

References fBoundsFromCaller.

Referenced by flutter::testing::SaveLayerBoundsExpector::addSuppliedExpectation(), and flutter::DisplayListBuilder::SaveLayer().

◆ with_can_distribute_opacity()

SaveLayerOptions flutter::SaveLayerOptions::with_can_distribute_opacity ( ) const
inline

Definition at line 192 of file display_list.h.

192 {
193 SaveLayerOptions options(this);
194 options.fCanDistributeOpacity = true;
195 return options;
196 }

References fCanDistributeOpacity.

◆ with_contains_backdrop_filter()

SaveLayerOptions flutter::SaveLayerOptions::with_contains_backdrop_filter ( ) const
inline

Definition at line 226 of file display_list.h.

226 {
227 SaveLayerOptions options(this);
228 options.fHasBackdropFilter = true;
229 return options;
230 }

References fHasBackdropFilter.

◆ with_content_is_clipped()

SaveLayerOptions flutter::SaveLayerOptions::with_content_is_clipped ( ) const
inline

Definition at line 219 of file display_list.h.

219 {
220 SaveLayerOptions options(this);
221 options.fContentIsClipped = true;
222 return options;
223 }

References fContentIsClipped.

Referenced by flutter::testing::SaveLayerBoundsExpector::addSuppliedExpectation().

◆ with_content_is_unbounded()

SaveLayerOptions flutter::SaveLayerOptions::with_content_is_unbounded ( ) const
inline

Definition at line 233 of file display_list.h.

233 {
234 SaveLayerOptions options(this);
235 options.fContentIsUnbounded = true;
236 return options;
237 }

References fContentIsUnbounded.

◆ with_renders_with_attributes()

SaveLayerOptions flutter::SaveLayerOptions::with_renders_with_attributes ( ) const
inline

Definition at line 185 of file display_list.h.

185 {
186 SaveLayerOptions options(this);
187 options.fRendersWithAttributes = true;
188 return options;
189 }

References fRendersWithAttributes.

Referenced by flutter::DisplayListBuilder::SaveLayer().

◆ without_bounds_from_caller()

SaveLayerOptions flutter::SaveLayerOptions::without_bounds_from_caller ( ) const
inline

Definition at line 207 of file display_list.h.

207 {
208 SaveLayerOptions options(this);
209 options.fBoundsFromCaller = false;
210 return options;
211 }

References fBoundsFromCaller.

◆ without_optimizations()

SaveLayerOptions flutter::SaveLayerOptions::without_optimizations ( ) const
inline

Definition at line 177 of file display_list.h.

177 {
178 SaveLayerOptions options;
179 options.fRendersWithAttributes = fRendersWithAttributes;
180 options.fBoundsFromCaller = fBoundsFromCaller;
181 return options;
182 }

References fBoundsFromCaller, and fRendersWithAttributes.

Member Data Documentation

◆ fBoundsFromCaller

unsigned flutter::SaveLayerOptions::fBoundsFromCaller

◆ fCanDistributeOpacity

unsigned flutter::SaveLayerOptions::fCanDistributeOpacity

Definition at line 251 of file display_list.h.

Referenced by can_distribute_opacity(), and with_can_distribute_opacity().

◆ fContentIsClipped

unsigned flutter::SaveLayerOptions::fContentIsClipped

Definition at line 253 of file display_list.h.

Referenced by content_is_clipped(), and with_content_is_clipped().

◆ fContentIsUnbounded

unsigned flutter::SaveLayerOptions::fContentIsUnbounded

Definition at line 255 of file display_list.h.

Referenced by content_is_unbounded(), and with_content_is_unbounded().

◆ fHasBackdropFilter

unsigned flutter::SaveLayerOptions::fHasBackdropFilter

Definition at line 254 of file display_list.h.

Referenced by contains_backdrop_filter(), and with_contains_backdrop_filter().

◆ flags_

uint32_t flutter::SaveLayerOptions::flags_

Definition at line 257 of file display_list.h.

Referenced by operator=(), and operator==().

◆ fRendersWithAttributes

unsigned flutter::SaveLayerOptions::fRendersWithAttributes

◆ kNoAttributes

◆ kWithAttributes


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