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

Side by Side Diff: dm/DMSrcSink.h

Issue 1062043004: Add a Via to DM that records into two pictures and draws using the second. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 260 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
261 int enclave() const override { return fSink->enclave(); } 261 int enclave() const override { return fSink->enclave(); }
262 const char* fileExtension() const override { return fSink->fileExtension(); } 262 const char* fileExtension() const override { return fSink->fileExtension(); }
263 private: 263 private:
264 const int fW, fH; 264 const int fW, fH;
265 SkAutoTDelete<SkBBHFactory> fFactory; 265 SkAutoTDelete<SkBBHFactory> fFactory;
266 SkAutoTDelete<Sink> fSink; 266 SkAutoTDelete<Sink> fSink;
267 }; 267 };
268 268
269 class ViaSecondPicture : public Sink {
270 public:
271 explicit ViaSecondPicture(Sink*);
272
273 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
274 int enclave() const override { return fSink->enclave(); }
275 const char* fileExtension() const override { return fSink->fileExtension(); }
276 private:
277 SkAutoTDelete<Sink> fSink;
278 };
279
269 } // namespace DM 280 } // namespace DM
270 281
271 #endif//DMSrcSink_DEFINED 282 #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