#include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h"
#include <algorithm>
#include <cmath>
#include "base/numerics/safe_conversions.h"
#include "build/build_config.h"
#include "cc/paint/paint_flags.h"
#include "partition_alloc/partition_alloc.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/wtf/allocator/partitions.h"
#include "third_party/skia/include/core/SkColorSpace.h"
#include "third_party/skia/modules/skcms/skcms.h"
#include "ui/base/ui_base_features.h"
namespace blink {
SkBlendMode WebCoreCompositeToSkiaComposite(CompositeOperator op,
BlendMode blend_mode) { … }
SkBlendMode WebCoreBlendModeToSkBlendMode(BlendMode blend_mode) { … }
std::pair<CompositeOperator, BlendMode> CompositeAndBlendOpsFromSkBlendMode(
SkBlendMode sk_blend_mode) { … }
SkMatrix AffineTransformToSkMatrix(const AffineTransform& source) { … }
SkM44 AffineTransformToSkM44(const AffineTransform& source) { … }
bool NearlyIntegral(float value) { … }
bool IsValidImageSize(const gfx::Size& size) { … }
InterpolationQuality ComputeInterpolationQuality(float src_width,
float src_height,
float dest_width,
float dest_height,
bool is_data_complete) { … }
SkColor ScaleAlpha(SkColor color, float alpha) { … }
bool ApproximatelyEqualSkColorSpaces(sk_sp<SkColorSpace> src_color_space,
sk_sp<SkColorSpace> dst_color_space) { … }
static cc::PaintFlags PaintFlagsForFocusRing(SkColor4f color, float width) { … }
void DrawPlatformFocusRing(const SkRRect& rrect,
cc::PaintCanvas* canvas,
SkColor4f color,
float width) { … }
void DrawPlatformFocusRing(const SkPath& path,
cc::PaintCanvas* canvas,
SkColor4f color,
float width,
float corner_radius) { … }
sk_sp<SkData> TryAllocateSkData(size_t size) { … }
}