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

Side by Side Diff: src/core/SkPipe.h

Issue 2201323003: add pipecanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: drawVertices and drawTextOnPath Created 4 years, 4 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
(Empty)
1 /*
2 * Copyright 2016 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
8 #ifndef SkPipe_DEFINED
9 #define SkPipe_DEFINED
10
11 #include "SkTypes.h"
12
13 class SkCanvas;
14 class SkImage;
15 class SkPicture;
16 class SkWStream;
17
18 class SkPipeSerializer {
19 public:
20 SkPipeSerializer();
21 ~SkPipeSerializer();
22
23 void reset();
24
25 void write(SkPicture*, SkWStream*);
26 void write(SkImage*, SkWStream*);
27
28 SkCanvas* beginWrite(const SkRect& cullBounds, SkWStream*);
29 void endWrite();
30
31 private:
32 class Impl;
33 Impl* fImpl;
34 };
35
36 class SkPipeDeserializer {
37 public:
38 SkPipeDeserializer();
39 ~SkPipeDeserializer();
40
41 sk_sp<SkPicture> readPicture(const void*, size_t);
42 sk_sp<SkImage> readImage(const void*, size_t);
43 bool playback(const void*, size_t, SkCanvas*);
44
45 private:
46 class Impl;
47 Impl* fImpl;
48 };
49
50 #endif
OLDNEW
« no previous file with comments | « src/core/SkDeduper.h ('k') | src/core/SkReadBuffer.h » ('j') | src/core/SkReadBuffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698