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

Side by Side Diff: dm/DMSrcSink.h

Issue 978823002: Run CodecSrc DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, plus cleanups 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 explicit ImageSrc(Path path, int divisor = 0); 88 explicit ImageSrc(Path path, int divisor = 0);
89 89
90 Error draw(SkCanvas*) const SK_OVERRIDE; 90 Error draw(SkCanvas*) const SK_OVERRIDE;
91 SkISize size() const SK_OVERRIDE; 91 SkISize size() const SK_OVERRIDE;
92 Name name() const SK_OVERRIDE; 92 Name name() const SK_OVERRIDE;
93 private: 93 private:
94 Path fPath; 94 Path fPath;
95 const int fDivisor; 95 const int fDivisor;
96 }; 96 };
97 97
98 class CodecSrc : public Src {
99 public:
100 enum SkipZeroes {
101 kSkipZeroes,
102 kNo_SkipZeroes,
103 };
104
105 enum Scanlines {
106 kNormal_Scanlines,
107 kIterator_Scanlines,
108 kScaling_Scanlines,
109 kSubset_Scanlines,
110 };
111
112 CodecSrc(Path path, SkColorType dstCT, SkAlphaType dstAT, SkipZeroes, Scanli nes);
113
114 Error draw(SkCanvas*) const SK_OVERRIDE;
115 SkISize size() const SK_OVERRIDE;
116 Name name() const SK_OVERRIDE;
117 private:
118 Path fPath;
119 SkColorType fDstColorType;
120 SkAlphaType fDstAlphaType;
121 SkipZeroes fSkipZeroes;
122 Scanlines fScanlines;
123 };
124
98 class SKPSrc : public Src { 125 class SKPSrc : public Src {
99 public: 126 public:
100 explicit SKPSrc(Path path); 127 explicit SKPSrc(Path path);
101 128
102 Error draw(SkCanvas*) const SK_OVERRIDE; 129 Error draw(SkCanvas*) const SK_OVERRIDE;
103 SkISize size() const SK_OVERRIDE; 130 SkISize size() const SK_OVERRIDE;
104 Name name() const SK_OVERRIDE; 131 Name name() const SK_OVERRIDE;
105 private: 132 private:
106 Path fPath; 133 Path fPath;
107 }; 134 };
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 265 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
239 private: 266 private:
240 const int fW, fH; 267 const int fW, fH;
241 SkAutoTDelete<SkBBHFactory> fFactory; 268 SkAutoTDelete<SkBBHFactory> fFactory;
242 SkAutoTDelete<Sink> fSink; 269 SkAutoTDelete<Sink> fSink;
243 }; 270 };
244 271
245 } // namespace DM 272 } // namespace DM
246 273
247 #endif//DMSrcSink_DEFINED 274 #endif//DMSrcSink_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698