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/utils/debugger/SkDebugCanvas.h

Issue 247983003: Revert of make drawText calls non-virtual, to ease SkFont and TextBlob (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/SkProxyCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SKDEBUGCANVAS_H_ 10 #ifndef SKDEBUGCANVAS_H_
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 183 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
184 184
185 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; 185 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE;
186 186
187 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; 187 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE;
188 188
189 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], 189 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[],
190 const SkPaint&) SK_OVERRIDE; 190 const SkPaint&) SK_OVERRIDE;
191 191
192 virtual void drawPosText(const void* text, size_t byteLength,
193 const SkPoint pos[], const SkPaint&) SK_OVERRIDE;
194
195 virtual void drawPosTextH(const void* text, size_t byteLength,
196 const SkScalar xpos[], SkScalar constY,
197 const SkPaint&) SK_OVERRIDE;
198
192 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; 199 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE;
193 200
194 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI DE; 201 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI DE;
195 202
196 virtual void drawSprite(const SkBitmap&, int left, int top, 203 virtual void drawSprite(const SkBitmap&, int left, int top,
197 const SkPaint*) SK_OVERRIDE; 204 const SkPaint*) SK_OVERRIDE;
198 205
206 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
207 SkScalar y, const SkPaint&) SK_OVERRIDE;
208
209 virtual void drawTextOnPath(const void* text, size_t byteLength,
210 const SkPath& path, const SkMatrix* matrix,
211 const SkPaint&) SK_OVERRIDE;
212
199 virtual void drawVertices(VertexMode, int vertexCount, 213 virtual void drawVertices(VertexMode, int vertexCount,
200 const SkPoint vertices[], const SkPoint texs[], 214 const SkPoint vertices[], const SkPoint texs[],
201 const SkColor colors[], SkXfermode*, 215 const SkColor colors[], SkXfermode*,
202 const uint16_t indices[], int indexCount, 216 const uint16_t indices[], int indexCount,
203 const SkPaint&) SK_OVERRIDE; 217 const SkPaint&) SK_OVERRIDE;
204 218
205 static const int kVizImageHeight = 256; 219 static const int kVizImageHeight = 256;
206 static const int kVizImageWidth = 256; 220 static const int kVizImageWidth = 256;
207 221
208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } 222 virtual bool isClipEmpty() const SK_OVERRIDE { return false; }
(...skipping 20 matching lines...) Expand all
229 243
230 protected: 244 protected:
231 virtual void willSave(SaveFlags) SK_OVERRIDE; 245 virtual void willSave(SaveFlags) SK_OVERRIDE;
232 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 246 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
233 virtual void willRestore() SK_OVERRIDE; 247 virtual void willRestore() SK_OVERRIDE;
234 248
235 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 249 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
236 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 250 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
237 251
238 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 252 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
239 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
240 const SkPaint&) SK_OVERRIDE;
241 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
242 const SkPaint&) SK_OVERRIDE;
243 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
244 SkScalar constY, const SkPaint&) SK_OVERRIDE;
245 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
246 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
247 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 253 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
248 virtual void onPopCull() SK_OVERRIDE; 254 virtual void onPopCull() SK_OVERRIDE;
249 255
250 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 256 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
251 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 257 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
252 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 258 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
253 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; 259 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE;
254 260
255 void markActiveCommands(int index); 261 void markActiveCommands(int index);
256 262
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 if (NULL != fPicture) { 314 if (NULL != fPicture) {
309 return fPicture->EXPERIMENTAL_curOpID(); 315 return fPicture->EXPERIMENTAL_curOpID();
310 } 316 }
311 return 0; 317 return 0;
312 } 318 }
313 319
314 typedef SkCanvas INHERITED; 320 typedef SkCanvas INHERITED;
315 }; 321 };
316 322
317 #endif 323 #endif
OLDNEW
« no previous file with comments | « src/utils/SkProxyCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698