| Index: ui/gfx/skia_util.h
|
| diff --git a/ui/gfx/skia_util.h b/ui/gfx/skia_util.h
|
| index 92c886a4309f6c2a2a3edb617bf41d789cef8eca..0c759838b863f5443b238054e1b38ea9ce6ed0f7 100644
|
| --- a/ui/gfx/skia_util.h
|
| +++ b/ui/gfx/skia_util.h
|
| @@ -47,6 +47,13 @@ GFX_EXPORT skia::RefPtr<SkShader> CreateImageRepShader(
|
| SkShader::TileMode tile_mode,
|
| const SkMatrix& local_matrix);
|
|
|
| +// Creates a bitmap shader for the image rep with the passed in scale factor.
|
| +GFX_EXPORT skia::RefPtr<SkShader> CreateImageRepShaderForScale(
|
| + const gfx::ImageSkiaRep& image_rep,
|
| + SkShader::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 skia::RefPtr<SkShader> CreateGradientShader(int start_point,
|
|
|