Definition at line 244 of file dl_rendering_unittests.cc.
◆ BoundsTolerance() [1/2]
flutter::testing::BoundsTolerance::BoundsTolerance |
( |
| ) |
|
|
default |
◆ BoundsTolerance() [2/2]
flutter::testing::BoundsTolerance::BoundsTolerance |
( |
const BoundsTolerance & |
| ) |
|
|
default |
◆ addAbsolutePadding()
Definition at line 263 of file dl_rendering_unittests.cc.
264 {
266 copy.absolute_pad_.offset(absolute_pad_x, absolute_pad_y);
268 }
static void copy(void *dst, const uint8_t *src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[])
BoundsTolerance()=default
◆ addBoundsPadding()
◆ addDiscreteOffset()
◆ addPostClipPadding()
◆ clip()
◆ discrete_offset()
SkScalar flutter::testing::BoundsTolerance::discrete_offset |
( |
| ) |
const |
|
inline |
◆ mulScale()
◆ operator==()
bool flutter::testing::BoundsTolerance::operator== |
( |
BoundsTolerance const & |
other | ) |
const |
|
inline |
Definition at line 326 of file dl_rendering_unittests.cc.
326 {
327 return bounds_pad_ == other.bounds_pad_ && scale_ == other.scale_ &&
328 absolute_pad_ == other.absolute_pad_ && clip_ == other.clip_ &&
329 clip_pad_ == other.clip_pad_ &&
330 discrete_offset_ == other.discrete_offset_;
331 }
◆ overflows()
bool flutter::testing::BoundsTolerance::overflows |
( |
SkIRect |
pix_bounds, |
|
|
int |
worst_bounds_pad_x, |
|
|
int |
worst_bounds_pad_y |
|
) |
| const |
|
inline |
Definition at line 297 of file dl_rendering_unittests.cc.
299 {
301 allowed.
outset(bounds_pad_.
fX, bounds_pad_.
fY);
302 allowed =
Scale(allowed, scale_);
303 allowed.
outset(absolute_pad_.
fX, absolute_pad_.
fY);
306 }
313 int allowed_pad_x =
std::max(pad_left, pad_right);
314 int allowed_pad_y =
std::max(pad_top, pad_bottom);
315 if (worst_bounds_pad_x > allowed_pad_x ||
316 worst_bounds_pad_y > allowed_pad_y) {
318 << allowed_pad_x << ", " << allowed_pad_y;
319 }
320 return (worst_bounds_pad_x > allowed_pad_x ||
321 worst_bounds_pad_y > allowed_pad_y);
322 }
static SkRect Scale(const SkRect &rect, const SkPoint &scales)
#define FML_LOG(severity)
static float max(float r, float g, float b)
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds
static SkRect Make(const SkISize &size)
bool intersect(const SkRect &r)
void outset(float dx, float dy)
void roundOut(SkIRect *dst) const
◆ Scale()
static SkRect flutter::testing::BoundsTolerance::Scale |
( |
const SkRect & |
rect, |
|
|
const SkPoint & |
scales |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: