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

Side by Side Diff: dm/DMSrcSink.h

Issue 1126613005: DM: add a Via to simulate SP pictures. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: int->scalar Created 5 years, 7 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 /* 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 public: 288 public:
289 explicit ViaSecondPicture(Sink*); 289 explicit ViaSecondPicture(Sink*);
290 290
291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
292 int enclave() const override { return fSink->enclave(); } 292 int enclave() const override { return fSink->enclave(); }
293 const char* fileExtension() const override { return fSink->fileExtension(); } 293 const char* fileExtension() const override { return fSink->fileExtension(); }
294 private: 294 private:
295 SkAutoTDelete<Sink> fSink; 295 SkAutoTDelete<Sink> fSink;
296 }; 296 };
297 297
298 class ViaSingletonPictures : public Sink {
299 public:
300 explicit ViaSingletonPictures(Sink*);
301
302 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
303 int enclave() const override { return fSink->enclave(); }
304 const char* fileExtension() const override { return fSink->fileExtension(); }
305 private:
306 SkAutoTDelete<Sink> fSink;
307 };
308
298 } // namespace DM 309 } // namespace DM
299 310
300 #endif//DMSrcSink_DEFINED 311 #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