| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2015 Google Inc. | 2  * Copyright 2015 Google Inc. | 
| 3  * | 3  * | 
| 4  * Use of this source code is governed by a BSD-style license that can be | 4  * Use of this source code is governed by a BSD-style license that can be | 
| 5  * found in the LICENSE file. | 5  * found in the LICENSE file. | 
| 6  */ | 6  */ | 
| 7 | 7 | 
| 8 #ifndef DMSrcSink_DEFINED | 8 #ifndef DMSrcSink_DEFINED | 
| 9 #define DMSrcSink_DEFINED | 9 #define DMSrcSink_DEFINED | 
| 10 | 10 | 
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 83 | 83 | 
| 84     Error draw(SkCanvas*) const SK_OVERRIDE; | 84     Error draw(SkCanvas*) const SK_OVERRIDE; | 
| 85     SkISize size() const SK_OVERRIDE; | 85     SkISize size() const SK_OVERRIDE; | 
| 86     Name name() const SK_OVERRIDE; | 86     Name name() const SK_OVERRIDE; | 
| 87 private: | 87 private: | 
| 88     skiagm::GMRegistry::Factory fFactory; | 88     skiagm::GMRegistry::Factory fFactory; | 
| 89 }; | 89 }; | 
| 90 | 90 | 
| 91 class CodecSrc : public Src { | 91 class CodecSrc : public Src { | 
| 92 public: | 92 public: | 
| 93     explicit CodecSrc(Path path); | 93     enum Mode { | 
|  | 94         kNormal_Mode, | 
|  | 95         kScanline_Mode, | 
|  | 96     }; | 
|  | 97     CodecSrc(Path, Mode); | 
| 94 | 98 | 
| 95     Error draw(SkCanvas*) const SK_OVERRIDE; | 99     Error draw(SkCanvas*) const SK_OVERRIDE; | 
| 96     SkISize size() const SK_OVERRIDE; | 100     SkISize size() const SK_OVERRIDE; | 
| 97     Name name() const SK_OVERRIDE; | 101     Name name() const SK_OVERRIDE; | 
| 98 private: | 102 private: | 
| 99     Path fPath; | 103     Path fPath; | 
|  | 104     Mode fMode; | 
| 100 }; | 105 }; | 
| 101 | 106 | 
| 102 | 107 | 
| 103 class ImageSrc : public Src { | 108 class ImageSrc : public Src { | 
| 104 public: | 109 public: | 
| 105     // divisor == 0 means decode the whole image | 110     // divisor == 0 means decode the whole image | 
| 106     // divisor > 0 means decode in subsets, dividing into a divisor x divisor gr
     id. | 111     // divisor > 0 means decode in subsets, dividing into a divisor x divisor gr
     id. | 
| 107     explicit ImageSrc(Path path, int divisor = 0); | 112     explicit ImageSrc(Path path, int divisor = 0); | 
| 108 | 113 | 
| 109     Error draw(SkCanvas*) const SK_OVERRIDE; | 114     Error draw(SkCanvas*) const SK_OVERRIDE; | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 257     const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
     ); } | 262     const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension(
     ); } | 
| 258 private: | 263 private: | 
| 259     const int                   fW, fH; | 264     const int                   fW, fH; | 
| 260     SkAutoTDelete<SkBBHFactory> fFactory; | 265     SkAutoTDelete<SkBBHFactory> fFactory; | 
| 261     SkAutoTDelete<Sink>         fSink; | 266     SkAutoTDelete<Sink>         fSink; | 
| 262 }; | 267 }; | 
| 263 | 268 | 
| 264 }  // namespace DM | 269 }  // namespace DM | 
| 265 | 270 | 
| 266 #endif//DMSrcSink_DEFINED | 271 #endif//DMSrcSink_DEFINED | 
| OLD | NEW | 
|---|