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

Side by Side Diff: experimental/PdfViewer/SkTrackDevice.h

Issue 605533002: Fix SkTextBlob offset semantics. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: default run positioning fix Created 6 years, 3 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 | include/core/SkBitmapDevice.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 SkTrackDevice_DEFINED 8 #ifndef SkTrackDevice_DEFINED
9 #define SkTrackDevice_DEFINED 9 #define SkTrackDevice_DEFINED
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len, 115 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len,
116 SkScalar x, SkScalar y, const SkPaint& paint) { 116 SkScalar x, SkScalar y, const SkPaint& paint) {
117 before(); 117 before();
118 INHERITED::drawText(dummy1, text, len, x, y, paint); 118 INHERITED::drawText(dummy1, text, len, x, y, paint);
119 after(); 119 after();
120 } 120 }
121 121
122 virtual void drawPosText(const SkDraw& dummy1, const void* text, size_t len, 122 virtual void drawPosText(const SkDraw& dummy1, const void* text, size_t len,
123 const SkScalar pos[], SkScalar constY, 123 const SkScalar pos[], int scalarsPerPos,
124 int scalarsPerPos, const SkPaint& paint) { 124 const SkPoint& offset, const SkPaint& paint) {
125 before(); 125 before();
126 INHERITED::drawPosText(dummy1, text, len, pos, constY, scalarsPerPos, pa int); 126 INHERITED::drawPosText(dummy1, text, len, pos, scalarsPerPos, offset, pa int);
127 after(); 127 after();
128 } 128 }
129 129
130 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l en, 130 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l en,
131 const SkPath& path, const SkMatrix* matrix, 131 const SkPath& path, const SkMatrix* matrix,
132 const SkPaint& paint) { 132 const SkPaint& paint) {
133 before(); 133 before();
134 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint); 134 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint);
135 after(); 135 after();
136 } 136 }
(...skipping 30 matching lines...) Expand all
167 } 167 }
168 } 168 }
169 169
170 private: 170 private:
171 SkTracker* fTracker; 171 SkTracker* fTracker;
172 172
173 typedef SkBitmapDevice INHERITED; 173 typedef SkBitmapDevice INHERITED;
174 }; 174 };
175 175
176 #endif // SkTrackDevice_DEFINED 176 #endif // SkTrackDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkBitmapDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698