class Size

Defined at line 41 of file ../../src/media/third_party/chromium_media/geometry.h

Public Methods

void Size ()

Defined at line 43 of file ../../src/media/third_party/chromium_media/geometry.h

void Size (int width, int height)

Defined at line 44 of file ../../src/media/third_party/chromium_media/geometry.h

int width ()

Defined at line 47 of file ../../src/media/third_party/chromium_media/geometry.h

int height ()

Defined at line 48 of file ../../src/media/third_party/chromium_media/geometry.h

safemath::CheckedNumeric<int> GetCheckedArea ()

GetArea() was intentionally removed to prevent signed integer overflow.

When merging incoming usages of GetArea() from upstream Chromium, switch

them to GetCheckedArea() or Area64().

Defined at line 52 of file ../../src/media/third_party/chromium_media/geometry.h

uint64_t Area64 ()

Size constructors and mutators clamp width_ and height_ to >= 0 when set,

maintaining the class invariant that width_ and height_ are always in

[0, INT_MAX]. Thus casting to uint64_t cannot sign-extend, and the product

cannot overflow uint64_t.

Defined at line 59 of file ../../src/media/third_party/chromium_media/geometry.h

void set_width (int width)

Defined at line 64 of file ../../src/media/third_party/chromium_media/geometry.h

void set_height (int height)

Defined at line 65 of file ../../src/media/third_party/chromium_media/geometry.h

void SetSize (int width, int height)

Defined at line 67 of file ../../src/media/third_party/chromium_media/geometry.h

void SetToMin (const Size & other)

Defined at line 72 of file ../../src/media/third_party/chromium_media/geometry.h

void SetToMax (const Size & other)

Defined at line 77 of file ../../src/media/third_party/chromium_media/geometry.h

bool IsEmpty ()

Defined at line 82 of file ../../src/media/third_party/chromium_media/geometry.h

std::string ToString ()

Defined at line 83 of file ../../src/media/third_party/chromium_media/geometry.h