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

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

Issue 1758023003: Move annotations to canvas virtual (patchset #8 id:140001 of https://codereview.chromium.org/174410… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase Created 4 years, 9 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 | « src/core/SkRecorder.cpp ('k') | src/core/SkRemote.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 SkRemote_DEFINED 8 #ifndef SkRemote_DEFINED
9 #define SkRemote_DEFINED 9 #define SkRemote_DEFINED
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual ID define(const Stroke&) = 0; 72 virtual ID define(const Stroke&) = 0;
73 virtual ID define(const SkTextBlob*) = 0; 73 virtual ID define(const SkTextBlob*) = 0;
74 virtual ID define(SkPathEffect*) = 0; 74 virtual ID define(SkPathEffect*) = 0;
75 virtual ID define(SkShader*) = 0; 75 virtual ID define(SkShader*) = 0;
76 virtual ID define(SkXfermode*) = 0; 76 virtual ID define(SkXfermode*) = 0;
77 virtual ID define(SkMaskFilter*) = 0; 77 virtual ID define(SkMaskFilter*) = 0;
78 virtual ID define(SkColorFilter*) = 0; 78 virtual ID define(SkColorFilter*) = 0;
79 virtual ID define(SkRasterizer*) = 0; 79 virtual ID define(SkRasterizer*) = 0;
80 virtual ID define(SkDrawLooper*) = 0; 80 virtual ID define(SkDrawLooper*) = 0;
81 virtual ID define(SkImageFilter*) = 0; 81 virtual ID define(SkImageFilter*) = 0;
82 virtual ID define(SkAnnotation*) = 0;
83 82
84 virtual void undefine(ID) = 0; 83 virtual void undefine(ID) = 0;
85 84
86 // TODO: do these all belong here in CommonIDs? 85 // TODO: do these all belong here in CommonIDs?
87 struct CommonIDs { 86 struct CommonIDs {
88 ID misc, patheffect, shader, xfermode, maskfilter, 87 ID misc, patheffect, shader, xfermode, maskfilter,
89 colorfilter, rasterizer, looper, imagefilter, annotation; 88 colorfilter, rasterizer, looper, imagefilter;
90 }; 89 };
91 90
92 virtual void save() = 0; 91 virtual void save() = 0;
93 virtual void restore() = 0; 92 virtual void restore() = 0;
94 virtual void saveLayer(ID bounds, CommonIDs, uint32_t saveLayerFlags) = 0; 93 virtual void saveLayer(ID bounds, CommonIDs, uint32_t saveLayerFlags) = 0;
95 94
96 virtual void setMatrix(ID matrix) = 0; 95 virtual void setMatrix(ID matrix) = 0;
97 96
98 virtual void clipPath(ID path, SkRegion::Op, bool aa) = 0; 97 virtual void clipPath(ID path, SkRegion::Op, bool aa) = 0;
99 virtual void fillPath(ID path, CommonIDs) = 0; 98 virtual void fillPath(ID path, CommonIDs) = 0;
100 virtual void strokePath(ID path, CommonIDs, ID stroke) = 0; 99 virtual void strokePath(ID path, CommonIDs, ID stroke) = 0;
101 virtual void fillText(ID text, SkPoint, CommonIDs) = 0; 100 virtual void fillText(ID text, SkPoint, CommonIDs) = 0;
102 virtual void strokeText(ID text, SkPoint, CommonIDs, ID stroke) = 0; 101 virtual void strokeText(ID text, SkPoint, CommonIDs, ID stroke) = 0;
103 }; 102 };
104 103
105 // None of these factories take ownership of their arguments. 104 // None of these factories take ownership of their arguments.
106 105
107 // Returns a new SkCanvas that translates to the Encoder API. 106 // Returns a new SkCanvas that translates to the Encoder API.
108 SkCanvas* NewCanvas(Encoder*); 107 SkCanvas* NewCanvas(Encoder*);
109 // Returns an Encoder that translates back to the SkCanvas API. 108 // Returns an Encoder that translates back to the SkCanvas API.
110 Encoder* NewDecoder(SkCanvas*); 109 Encoder* NewDecoder(SkCanvas*);
111 // Wraps another Encoder with a cache. TODO: parameterize 110 // Wraps another Encoder with a cache. TODO: parameterize
112 Encoder* NewCachingEncoder(Encoder*); 111 Encoder* NewCachingEncoder(Encoder*);
113 112
114 } // namespace SkRemote 113 } // namespace SkRemote
115 114
116 #endif//SkRemote_DEFINED 115 #endif//SkRemote_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/core/SkRemote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698