OLD | NEW |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void didSetMatrix(const SkMatrix&) override; | 104 void didSetMatrix(const SkMatrix&) override; |
105 | 105 |
106 void onClipPath (const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 106 void onClipPath (const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
107 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 107 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
108 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 108 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
109 | 109 |
110 void onDrawOval(const SkRect&, const SkPaint&) override; | 110 void onDrawOval(const SkRect&, const SkPaint&) override; |
111 void onDrawPath(const SkPath&, const SkPaint&) override; | 111 void onDrawPath(const SkPath&, const SkPaint&) override; |
112 void onDrawRect(const SkRect&, const SkPaint&) override; | 112 void onDrawRect(const SkRect&, const SkPaint&) override; |
113 | 113 |
| 114 void onDrawText(const void*, size_t, SkScalar, |
| 115 SkScalar, const SkPaint&) override; |
| 116 void onDrawPosText(const void*, size_t, const SkPoint[], |
| 117 const SkPaint&) override; |
| 118 void onDrawPosTextH(const void*, size_t, const SkScalar[], SkScalar, |
| 119 const SkPaint&) override; |
| 120 |
114 Cache* fCache; | 121 Cache* fCache; |
115 Encoder* fEncoder; | 122 Encoder* fEncoder; |
116 }; | 123 }; |
117 | 124 |
118 // TODO: document | 125 // TODO: document |
119 class Server final : public Encoder { | 126 class Server final : public Encoder { |
120 public: | 127 public: |
121 explicit Server(SkCanvas*); | 128 explicit Server(SkCanvas*); |
122 | 129 |
123 private: | 130 private: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 IDMap<Misc , Type::kMisc > fMisc; | 172 IDMap<Misc , Type::kMisc > fMisc; |
166 IDMap<SkPath , Type::kPath > fPath; | 173 IDMap<SkPath , Type::kPath > fPath; |
167 IDMap<Stroke , Type::kStroke> fStroke; | 174 IDMap<Stroke , Type::kStroke> fStroke; |
168 | 175 |
169 SkCanvas* fCanvas; | 176 SkCanvas* fCanvas; |
170 }; | 177 }; |
171 | 178 |
172 } // namespace SkRemote | 179 } // namespace SkRemote |
173 | 180 |
174 #endif//SkRemote_DEFINED | 181 #endif//SkRemote_DEFINED |
OLD | NEW |