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

Unified Diff: dm/DMSrcSink.h

Issue 893703002: Suggestions and merge in the other CL. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 16f7c144eba5f43b7c0ba249244501349848155e..bf8e7d6810d7465957b72b0b23402a62b7b62e88 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -61,14 +61,16 @@ private:
class ImageSrc : public Src {
public:
- explicit ImageSrc(Path path, int subsets = 0);
+ // divisor == 0 means decode the whole image
+ // divisor > 0 means decode in subsets, dividing into a divisor x divisor grid.
+ explicit ImageSrc(Path path, int divisor = 0);
Error draw(SkCanvas*) const SK_OVERRIDE;
SkISize size() const SK_OVERRIDE;
Name name() const SK_OVERRIDE;
private:
Path fPath;
scroggo 2015/01/30 21:15:09 The other CL made this const. Is it deliberately n
mtklein 2015/01/30 21:16:42 Oh no, not really. It doesn't make much of a diff
- int fSubsets;
+ const int fDivisor;
};
class SKPSrc : public Src {
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698