| Index: ui/gfx/skia_paint_util.h
|
| diff --git a/ui/gfx/skia_paint_util.h b/ui/gfx/skia_paint_util.h
|
| index 2ec10ff621c4ecc742b24a978c5d07d9f2b7ca9d..1cf20068847dbeb7e23253204b32075ce3ed8a37 100644
|
| --- a/ui/gfx/skia_paint_util.h
|
| +++ b/ui/gfx/skia_paint_util.h
|
| @@ -7,7 +7,7 @@
|
|
|
| #include <vector>
|
|
|
| -#include "third_party/skia/include/core/SkShader.h"
|
| +#include "cc/paint/paint_shader.h"
|
| #include "ui/gfx/gfx_export.h"
|
| #include "ui/gfx/shadow_value.h"
|
|
|
| @@ -25,24 +25,24 @@ class ImageSkiaRep;
|
| // 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
|
|
|