#include <clip_contents.h>
Public Attributes | |
bool | is_difference_or_non_square = false |
std::optional< Rect > | coverage = std::nullopt |
This coverage is the outer coverage of the clip. More... | |
Definition at line 14 of file clip_contents.h.
std::optional<Rect> impeller::ClipCoverage::coverage = std::nullopt |
This coverage is the outer coverage of the clip.
For example, if the clip is a circular clip, this is the rectangle that contains the circle and not the rectangle that is contained within the circle. This means that we cannot use the coverage alone to determine if a clip can be culled, and instead also use the somewhat hacky "is_difference_or_non_square" field.
Definition at line 26 of file clip_contents.h.
Referenced by impeller::ClipContents::GetClipCoverage(), and impeller::EntityPassClipStack::RecordClip().
bool impeller::ClipCoverage::is_difference_or_non_square = false |
Definition at line 17 of file clip_contents.h.
Referenced by impeller::EntityPassClipStack::RecordClip().