| Index: ui/gfx/skia_util.h
|
| diff --git a/ui/gfx/skia_util.h b/ui/gfx/skia_util.h
|
| index fbd1909c06831346079d252c2e673f2d5b6d6d6b..1ace5cf40279ed665de6d2b73c7527ad13717155 100644
|
| --- a/ui/gfx/skia_util.h
|
| +++ b/ui/gfx/skia_util.h
|
| @@ -8,9 +8,9 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "cc/paint/paint_shader.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "third_party/skia/include/core/SkRect.h"
|
| -#include "third_party/skia/include/core/SkShader.h"
|
| #include "ui/gfx/geometry/quad_f.h"
|
| #include "ui/gfx/geometry/size.h"
|
| #include "ui/gfx/gfx_export.h"
|
| @@ -53,24 +53,24 @@ GFX_EXPORT void TransformToFlattenedSkMatrix(const gfx::Transform& transform,
|
| // TODO(pkotwicz): Allow shader's local matrix to be changed after the shader
|
| // is created.
|
| //
|
| -GFX_EXPORT sk_sp<SkShader> CreateImageRepShader(
|
| +GFX_EXPORT sk_sp<cc::PaintShader> CreateImageRepShader(
|
| const gfx::ImageSkiaRep& image_rep,
|
| - SkShader::TileMode tile_mode,
|
| + cc::PaintShader::TileMode tile_mode,
|
| const SkMatrix& local_matrix);
|
|
|
| // Creates a bitmap shader for the image rep with the passed in scale factor.
|
| -GFX_EXPORT sk_sp<SkShader> CreateImageRepShaderForScale(
|
| +GFX_EXPORT sk_sp<cc::PaintShader> CreateImageRepShaderForScale(
|
| const gfx::ImageSkiaRep& image_rep,
|
| - SkShader::TileMode tile_mode,
|
| + cc::PaintShader::TileMode tile_mode,
|
| const SkMatrix& local_matrix,
|
| SkScalar scale);
|
|
|
| // Creates a vertical gradient shader. The caller owns the shader.
|
| // Example usage to avoid leaks:
|
| -GFX_EXPORT sk_sp<SkShader> CreateGradientShader(int start_point,
|
| - int end_point,
|
| - SkColor start_color,
|
| - SkColor end_color);
|
| +GFX_EXPORT sk_sp<cc::PaintShader> CreateGradientShader(int start_point,
|
| + int end_point,
|
| + SkColor start_color,
|
| + SkColor end_color);
|
|
|
| // Creates a draw looper to generate |shadows|. The caller owns the draw looper.
|
| // NULL is returned if |shadows| is empty since no draw looper is needed in
|
|
|