| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void onClipPath (const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 91 void onClipPath (const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
| 92 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 92 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 93 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 93 void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 94 | 94 |
| 95 void onDrawOval(const SkRect&, const SkPaint&) override; | 95 void onDrawOval(const SkRect&, const SkPaint&) override; |
| 96 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) overri
de; | 96 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) overri
de; |
| 97 void onDrawPath(const SkPath&, const SkPaint&) override; | 97 void onDrawPath(const SkPath&, const SkPaint&) override; |
| 98 void onDrawRect(const SkRect&, const SkPaint&) override; | 98 void onDrawRect(const SkRect&, const SkPaint&) override; |
| 99 void onDrawPaint(const SkPaint&) override; | 99 void onDrawPaint(const SkPaint&) override; |
| 100 | 100 |
| 101 void onDrawText(const void*, size_t, SkScalar, |
| 102 SkScalar, const SkPaint&) override; |
| 103 void onDrawPosText(const void*, size_t, const SkPoint[], |
| 104 const SkPaint&) override; |
| 105 void onDrawPosTextH(const void*, size_t, const SkScalar[], SkScalar, |
| 106 const SkPaint&) override; |
| 107 |
| 101 Cache* fCache; | 108 Cache* fCache; |
| 102 Encoder* fEncoder; | 109 Encoder* fEncoder; |
| 103 }; | 110 }; |
| 104 | 111 |
| 105 // TODO: document | 112 // TODO: document |
| 106 class Server final : public Encoder { | 113 class Server final : public Encoder { |
| 107 public: | 114 public: |
| 108 explicit Server(SkCanvas*); | 115 explicit Server(SkCanvas*); |
| 109 | 116 |
| 110 private: | 117 private: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 IDMap<Misc , Type::kMisc > fMisc; | 159 IDMap<Misc , Type::kMisc > fMisc; |
| 153 IDMap<SkPath , Type::kPath > fPath; | 160 IDMap<SkPath , Type::kPath > fPath; |
| 154 IDMap<Stroke , Type::kStroke> fStroke; | 161 IDMap<Stroke , Type::kStroke> fStroke; |
| 155 | 162 |
| 156 SkCanvas* fCanvas; | 163 SkCanvas* fCanvas; |
| 157 }; | 164 }; |
| 158 | 165 |
| 159 } // namespace SkRemote | 166 } // namespace SkRemote |
| 160 | 167 |
| 161 #endif//SkRemote_DEFINED | 168 #endif//SkRemote_DEFINED |
| OLD | NEW |