chromium/ui/gfx/geometry/skia_conversions.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/354829279): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/gfx/geometry/skia_conversions.h"

#include <stddef.h>
#include <stdint.h>

#include "base/numerics/safe_conversions.h"
#include "base/numerics/safe_math.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/transform.h"

namespace gfx {

SkPoint PointToSkPoint(const Point& point) {}

SkIPoint PointToSkIPoint(const Point& point) {}

Point SkIPointToPoint(const SkIPoint& point) {}

SkPoint PointFToSkPoint(const PointF& point) {}

PointF SkPointToPointF(const SkPoint& point) {}

SkRect RectToSkRect(const Rect& rect) {}

SkIRect RectToSkIRect(const Rect& rect) {}

Rect SkIRectToRect(const SkIRect& rect) {}

SkRect RectFToSkRect(const RectF& rect) {}

RectF SkRectToRectF(const SkRect& rect) {}

SkSize SizeFToSkSize(const SizeF& size) {}

SkISize SizeToSkISize(const Size& size) {}

SizeF SkSizeToSizeF(const SkSize& size) {}

Size SkISizeToSize(const SkISize& size) {}

void QuadFToSkPoints(const QuadF& quad, SkPoint points[4]) {}

SkMatrix AxisTransform2dToSkMatrix(const AxisTransform2d& transform) {}

SkM44 TransformToSkM44(const Transform& matrix) {}

Transform SkM44ToTransform(const SkM44& matrix) {}

// TODO(crbug.com/40237414): Remove this function in favor of the other form.
void TransformToFlattenedSkMatrix(const gfx::Transform& transform,
                                  SkMatrix* flattened) {}

SkMatrix TransformToFlattenedSkMatrix(const Transform& matrix) {}

Transform SkMatrixToTransform(const SkMatrix& matrix) {}

}  // namespace gfx