#include "ui/gfx/skia_paint_util.h"
#include "cc/paint/draw_looper.h"
#include "cc/paint/paint_image_builder.h"
#include "third_party/skia/include/core/SkColorFilter.h"
#include "third_party/skia/include/core/SkScalar.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/gfx/shadow_value.h"
#include "ui/gfx/switches.h"
namespace gfx {
sk_sp<cc::PaintShader> CreateImageRepShader(const gfx::ImageSkiaRep& image_rep,
SkTileMode tile_mode_x,
SkTileMode tile_mode_y,
const SkMatrix& local_matrix) { … }
sk_sp<cc::PaintShader> CreateImageRepShaderForScale(
const gfx::ImageSkiaRep& image_rep,
SkTileMode tile_mode_x,
SkTileMode tile_mode_y,
const SkMatrix& local_matrix,
SkScalar scale) { … }
sk_sp<cc::PaintShader> CreateGradientShader(const gfx::Point& start_point,
const gfx::Point& end_point,
SkColor start_color,
SkColor end_color) { … }
static SkScalar RadiusToSigma(double radius) { … }
sk_sp<cc::DrawLooper> CreateShadowDrawLooper(
const std::vector<ShadowValue>& shadows) { … }
}