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

Side by Side Diff: experimental/tools/SkDmuxWStream.h

Issue 868333002: experimental/skp_to_pdf_md5 optionally also outputs pdf files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | experimental/tools/SkDmuxWStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkDmuxWStream_DEFINED
8 #define SkDmuxWStream_DEFINED
9
10 #include "SkStream.h"
11 #include "SkTDArray.h"
12
13 /**
14 * A SkWStream Demultiplexer. If initialized with
15 * SkDmuxWStream dmuxWStream(NULL, 0);
16 * then it becomes a /dev/null.
17 */
18 class SkDmuxWStream : public SkWStream {
19 public:
20 SkDmuxWStream(SkWStream* const streamArray[], size_t count);
21 ~SkDmuxWStream();
22 virtual bool write(const void* buffer, size_t size) SK_OVERRIDE;
23 virtual void newline() SK_OVERRIDE;
24 virtual void flush() SK_OVERRIDE;
25 virtual size_t bytesWritten() const SK_OVERRIDE;
26
27 private:
28 SkTDArray<SkWStream*> fWStreams;
29 size_t fBytesWritten;
30 };
31
32 #endif // SkDmuxWStream_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/tools/SkDmuxWStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698