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

Unified Diff: include/core/SkImage.h

Issue 19729007: Add SkImage->draw() call with src and dst rects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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') | src/image/SkImagePriv.cpp » ('J')
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 c2ee5093fb679898c7c94d37814db7a1dc9d3049..35d140f4ca68b961090d3431d9fa94e603a20d99 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -82,7 +82,8 @@ public:
SkShader* newShader(SkShader::TileMode, SkShader::TileMode) const;
void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*);
-
+ void draw(SkCanvas*, SkRect src, SkRect dst, const SkPaint*);
Justin Novosad 2013/07/18 21:54:37 Use "const SkRect&" for src and dst
reed1 2013/07/19 14:03:45 How about const SkRect* src const SkRect& dst So
+
/**
* Encode the image's pixels and return the result as a new SkData, which
* the caller must manage (i.e. call unref() when they are done).
« no previous file with comments | « no previous file | src/image/SkImage.cpp » ('j') | src/image/SkImagePriv.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698