10#include <CoreGraphics/CoreGraphics.h>
11#elif defined(OS_APPLE)
12#include <ApplicationServices/ApplicationServices.h>
27Size& Size::operator=(
const CGSize&
s) {
35 Enlarge(
size.width(),
size.height());
39 Enlarge(-
size.width(), -
size.height());
43SIZE Size::ToSIZE()
const {
49#elif defined(OS_APPLE)
50CGSize Size::ToCGSize()
const {
55int Size::GetArea()
const {
56 return GetCheckedArea().ValueOrDie();
65void Size::Enlarge(
int grow_width,
int grow_height) {
66 SetSize(base::ClampAdd(
width(), grow_width),
67 base::ClampAdd(
height(), grow_height));
70void Size::SetToMin(
const Size& other) {
75void Size::SetToMax(
const Size& other) {
85 if (x_scale == 1.f && y_scale == 1.f)
97 if (x_scale == 1.f && y_scale == 1.f)
109 if (x_scale == 1.f && y_scale == 1.f)
constexpr int height() const
constexpr int width() const
std::string StringPrintf(const std::string &format, Args... args)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Size ToFlooredSize(const SizeF &size)
Size ScaleToCeiledSize(const Size &size, float scale)
Size ScaleToRoundedSize(const Size &size, float scale)
Size ScaleToFlooredSize(const Size &size, float scale)
SizeF ScaleSize(const SizeF &s, float x_scale, float y_scale)
Size ToCeiledSize(const SizeF &size)
Size ToRoundedSize(const SizeF &size)
static std::string ToString(CompilerBackend::Type type)
SINT Vec< N, T > & operator-=(Vec< N, T > &x, const Vec< N, T > &y)
SINT Vec< N, T > & operator+=(Vec< N, T > &x, const Vec< N, T > &y)