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

Side by Side Diff: dm/DMSrcSink.h

Issue 978823002: Run CodecSrc DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Respond to comments. Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMSrcSink_DEFINED 1 #ifndef DMSrcSink_DEFINED
2 #define DMSrcSink_DEFINED 2 #define DMSrcSink_DEFINED
3 3
4 #include "DMGpuSupport.h" 4 #include "DMGpuSupport.h"
5 #include "SkBBHFactory.h" 5 #include "SkBBHFactory.h"
6 #include "SkBBoxHierarchy.h" 6 #include "SkBBoxHierarchy.h"
7 #include "SkBitmap.h" 7 #include "SkBitmap.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkGPipe.h" 10 #include "SkGPipe.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 public: 74 public:
75 explicit GMSrc(skiagm::GMRegistry::Factory); 75 explicit GMSrc(skiagm::GMRegistry::Factory);
76 76
77 Error draw(SkCanvas*) const SK_OVERRIDE; 77 Error draw(SkCanvas*) const SK_OVERRIDE;
78 SkISize size() const SK_OVERRIDE; 78 SkISize size() const SK_OVERRIDE;
79 Name name() const SK_OVERRIDE; 79 Name name() const SK_OVERRIDE;
80 private: 80 private:
81 skiagm::GMRegistry::Factory fFactory; 81 skiagm::GMRegistry::Factory fFactory;
82 }; 82 };
83 83
84 class CodecSrc : public Src {
85 public:
86 explicit CodecSrc(Path path);
87
88 Error draw(SkCanvas*) const SK_OVERRIDE;
89 SkISize size() const SK_OVERRIDE;
90 Name name() const SK_OVERRIDE;
91 private:
92 Path fPath;
93 };
94
95
84 class ImageSrc : public Src { 96 class ImageSrc : public Src {
85 public: 97 public:
86 // divisor == 0 means decode the whole image 98 // divisor == 0 means decode the whole image
87 // divisor > 0 means decode in subsets, dividing into a divisor x divisor gr id. 99 // divisor > 0 means decode in subsets, dividing into a divisor x divisor gr id.
88 explicit ImageSrc(Path path, int divisor = 0); 100 explicit ImageSrc(Path path, int divisor = 0);
89 101
90 Error draw(SkCanvas*) const SK_OVERRIDE; 102 Error draw(SkCanvas*) const SK_OVERRIDE;
91 SkISize size() const SK_OVERRIDE; 103 SkISize size() const SK_OVERRIDE;
92 Name name() const SK_OVERRIDE; 104 Name name() const SK_OVERRIDE;
93 private: 105 private:
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 250 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
239 private: 251 private:
240 const int fW, fH; 252 const int fW, fH;
241 SkAutoTDelete<SkBBHFactory> fFactory; 253 SkAutoTDelete<SkBBHFactory> fFactory;
242 SkAutoTDelete<Sink> fSink; 254 SkAutoTDelete<Sink> fSink;
243 }; 255 };
244 256
245 } // namespace DM 257 } // namespace DM
246 258
247 #endif//DMSrcSink_DEFINED 259 #endif//DMSrcSink_DEFINED
OLDNEW
« 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