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

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

Issue 1409273004: SkRemote: simple impl of onDraw*Text* (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase && add comments Created 5 years, 2 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 | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/core/SkRemote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698