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

Side by Side Diff: dm/DMSrcSink.h

Issue 931483002: Suggested version with 'undo'. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cast to scalar Created 5 years, 10 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ViaMatrix(SkMatrix, Sink*); 156 ViaMatrix(SkMatrix, Sink*);
157 157
158 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; 158 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE;
159 int enclave() const SK_OVERRIDE { return fSink->enclave(); } 159 int enclave() const SK_OVERRIDE { return fSink->enclave(); }
160 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 160 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
161 private: 161 private:
162 SkMatrix fMatrix; 162 SkMatrix fMatrix;
163 SkAutoTDelete<Sink> fSink; 163 SkAutoTDelete<Sink> fSink;
164 }; 164 };
165 165
166 class ViaUpright : public Sink {
167 public:
168 ViaUpright(SkMatrix, Sink*);
169
170 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE;
171 int enclave() const SK_OVERRIDE { return fSink->enclave(); }
172 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
173 private:
174 SkMatrix fMatrix;
175 SkAutoTDelete<Sink> fSink;
176 };
177
166 class ViaPipe : public Sink { 178 class ViaPipe : public Sink {
167 public: 179 public:
168 explicit ViaPipe(Sink*); 180 explicit ViaPipe(Sink*);
169 181
170 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE; 182 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const SK_OVERRIDE;
171 int enclave() const SK_OVERRIDE { return fSink->enclave(); } 183 int enclave() const SK_OVERRIDE { return fSink->enclave(); }
172 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 184 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
173 private: 185 private:
174 SkAutoTDelete<Sink> fSink; 186 SkAutoTDelete<Sink> fSink;
175 }; 187 };
(...skipping 18 matching lines...) Expand all
194 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 206 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
195 private: 207 private:
196 const int fW, fH; 208 const int fW, fH;
197 SkAutoTDelete<SkBBHFactory> fFactory; 209 SkAutoTDelete<SkBBHFactory> fFactory;
198 SkAutoTDelete<Sink> fSink; 210 SkAutoTDelete<Sink> fSink;
199 }; 211 };
200 212
201 } // namespace DM 213 } // namespace DM
202 214
203 #endif//DMSrcSink_DEFINED 215 #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