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

Unified Diff: include/core/SkImage.h

Issue 453613003: mark all SkImage methods const, so we can make it thread-safe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months 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/image/SkImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 04e184370f73400b29c3201e24de0a101801bed0..581129e7207fd58a3311f9d161a372a6eefdd46a 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -62,7 +62,7 @@ public:
SkShader::TileMode,
const SkMatrix* localMatrix = NULL) const;
- void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*);
+ void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const;
/**
* Draw the image, cropped to the src rect, to the dst rect of a canvas.
@@ -71,7 +71,7 @@ public:
*
* See SkCanvas::drawBitmapRectToRect for similar behavior.
*/
- void draw(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*);
+ void draw(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*) const;
/**
* If the image has direct access to its pixels (i.e. they are in local
« no previous file with comments | « no previous file | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698