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

Unified Diff: include/codec/SkCodec.h

Issue 1260673002: SkScaledCodec class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Works for jpeg images Created 5 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
Index: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 1cdc88d4adcfc0dc4e028913348dd21c287e50e7..60045bdf6dfdad07a7e3c159bb989fb106a47b86 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -52,6 +52,8 @@ public:
* Return a size that approximately supports the desired scale factor.
* The codec may not be able to scale efficiently to the exact scale
* factor requested, so return a size that approximates that scale.
+ * This is a suggestion to the user. The dimensions getScanlineDecoder
scroggo 2015/07/30 17:53:01 The first sentence sounds good. For the second, I
emmaleer 2015/07/30 22:27:55 Yes that's what I was trying to say. I think menti
+ * is called with may not be the same.
*/
SkISize getScaledDimensions(float desiredScale) const {
return this->onGetScaledDimensions(desiredScale);
@@ -72,6 +74,7 @@ public:
* @return true if this codec supports decoding desiredSubset (as
* returned, potentially modified)
*/
+
msarett 2015/07/30 13:55:38 nit: I don't think we want this new line.
emmaleer 2015/07/30 17:50:39 Acknowledged.
scroggo 2015/07/30 17:53:01 nit: This extra line is not needed.
bool getValidSubset(SkIRect* desiredSubset) const {
return this->onGetValidSubset(desiredSubset);
}
« no previous file with comments | « gyp/codec.gyp ('k') | include/codec/SkScaledCodec.h » ('j') | include/codec/SkScanlineDecoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698