Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: include/core/SkShader.h

Issue 768113004: Constify CreatePictureShader's picture arg. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: also remove FIXME Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkShader.h
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 0033485e2903d97fb4ac1a9666446eed6019a695..8018cd44fff37dfa9858d6e6c0d31cf39e2cb895 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -443,7 +443,6 @@ public:
* @param src The picture to use inside the shader (if not NULL, its ref count
* is incremented). The SkPicture must not be changed after
* successfully creating a picture shader.
- * 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
@@ -453,7 +452,7 @@ public:
* bounds.
* @return Returns a new shader object. Note: this function never returns null.
*/
- static SkShader* CreatePictureShader(SkPicture* src,
+ static SkShader* CreatePictureShader(const SkPicture* src,
TileMode tmx, TileMode tmy,
const SkMatrix* localMatrix,
const SkRect* tile);
« no previous file with comments | « no previous file | src/core/SkShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698