#include "skia/ext/geometry.h"
#include "third_party/skia/include/core/SkMatrix.h"
#include "third_party/skia/include/core/SkRect.h"
namespace skia {
SkRect ScaleSkRectProportional(const SkRect& output_bounds,
const SkRect& input_bounds,
const SkRect& input_rect) { … }
Tiling::Tiling(const SkRect& dest_rect,
std::vector<SkRect> source_rects,
std::vector<sk_sp<SkImage>> source_images,
int32_t source_max_size)
: … { … }
Tiling::~Tiling() = default;
void Tiling::GetTileRect(
int x,
int y,
SkRect& tile_dest_rect,
std::vector<SkRect>& tile_source_rects,
std::vector<std::optional<SkIRect>>& tile_source_subset_rects) { … }
}