| Index: include/core/SkShader.h
|
| diff --git a/include/core/SkShader.h b/include/core/SkShader.h
|
| index e5af40dd7a181295a7433af9373a721e22805579..4f3fd29693a8ce56096c528017b0416115abb7d0 100644
|
| --- a/include/core/SkShader.h
|
| +++ b/include/core/SkShader.h
|
| @@ -428,10 +428,17 @@ public:
|
| * FIXME: src cannot be const due to SkCanvas::drawPicture
|
| * @param tmx The tiling mode to use when sampling the bitmap in the x-direction.
|
| * @param tmy The tiling mode to use when sampling the bitmap in the y-direction.
|
| + * @param tile The tile rectangle in picture coordinates: this represents the subset
|
| + * (or superset) of the picture used when building a tile. It is not
|
| + * affected by localMatrix and does not imply scaling (only translation
|
| + * and cropping). If null, the tile rect is considered equal to the picture
|
| + * bounds.
|
| * @return Returns a new shader object. Note: this function never returns null.
|
| */
|
| - static SkShader* CreatePictureShader(SkPicture* src, TileMode tmx, TileMode tmy,
|
| - const SkMatrix* localMatrix = NULL);
|
| + static SkShader* CreatePictureShader(SkPicture* src,
|
| + TileMode tmx, TileMode tmy,
|
| + const SkMatrix* localMatrix,
|
| + const SkRect* tile);
|
|
|
| /**
|
| * Return a shader that will apply the specified localMatrix to the proxy shader.
|
|
|