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

Side by Side Diff: include/utils/SkDumpCanvas.h

Issue 243853006: make drawText calls non-virtual, to ease SkFont and TextBlob (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: update SkRecord, don't infinitely recurse in SkBBoxRecord 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 | « include/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 #ifndef SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; 83 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE;
84 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 84 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
85 const SkPaint* paint) SK_OVERRIDE; 85 const SkPaint* paint) SK_OVERRIDE;
86 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 86 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
87 const SkRect& dst, const SkPaint* paint, 87 const SkRect& dst, const SkPaint* paint,
88 DrawBitmapRectFlags flags) SK_OVERRIDE; 88 DrawBitmapRectFlags flags) SK_OVERRIDE;
89 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 89 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
90 const SkPaint* paint) SK_OVERRIDE; 90 const SkPaint* paint) SK_OVERRIDE;
91 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 91 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
92 const SkPaint* paint) SK_OVERRIDE; 92 const SkPaint* paint) SK_OVERRIDE;
93 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
94 SkScalar y, const SkPaint& paint) SK_OVERRIDE;
95 virtual void drawPosText(const void* text, size_t byteLength,
96 const SkPoint pos[], const SkPaint& paint) SK_OVERR IDE;
97 virtual void drawPosTextH(const void* text, size_t byteLength,
98 const SkScalar xpos[], SkScalar constY,
99 const SkPaint& paint) SK_OVERRIDE;
100 virtual void drawTextOnPath(const void* text, size_t byteLength,
101 const SkPath& path, const SkMatrix* matrix,
102 const SkPaint& paint) SK_OVERRIDE;
103 virtual void drawPicture(SkPicture&) SK_OVERRIDE; 93 virtual void drawPicture(SkPicture&) SK_OVERRIDE;
104 virtual void drawVertices(VertexMode vmode, int vertexCount, 94 virtual void drawVertices(VertexMode vmode, int vertexCount,
105 const SkPoint vertices[], const SkPoint texs[], 95 const SkPoint vertices[], const SkPoint texs[],
106 const SkColor colors[], SkXfermode* xmode, 96 const SkColor colors[], SkXfermode* xmode,
107 const uint16_t indices[], int indexCount, 97 const uint16_t indices[], int indexCount,
108 const SkPaint& paint) SK_OVERRIDE; 98 const SkPaint& paint) SK_OVERRIDE;
109 virtual void drawData(const void*, size_t) SK_OVERRIDE; 99 virtual void drawData(const void*, size_t) SK_OVERRIDE;
110 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 100 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
111 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 101 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
112 virtual void endCommentGroup() SK_OVERRIDE; 102 virtual void endCommentGroup() SK_OVERRIDE;
113 103
114 protected: 104 protected:
115 virtual void willSave(SaveFlags) SK_OVERRIDE; 105 virtual void willSave(SaveFlags) SK_OVERRIDE;
116 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 106 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
117 virtual void willRestore() SK_OVERRIDE; 107 virtual void willRestore() SK_OVERRIDE;
118 108
119 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 109 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
120 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 110 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
121 111
122 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 112 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
113 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
114 const SkPaint&) SK_OVERRIDE;
115 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
116 const SkPaint&) SK_OVERRIDE;
117 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
118 SkScalar constY, const SkPaint&) SK_OVERRIDE;
119 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
120 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
123 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 121 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
124 virtual void onPopCull() SK_OVERRIDE; 122 virtual void onPopCull() SK_OVERRIDE;
125 123
126 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 124 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
127 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 125 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
128 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 126 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
129 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 127 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
130 128
131 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); 129 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle);
132 130
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 public: 162 public:
165 SkDebugfDumper(); 163 SkDebugfDumper();
166 164
167 private: 165 private:
168 typedef SkFormatDumper INHERITED; 166 typedef SkFormatDumper INHERITED;
169 }; 167 };
170 168
171 #endif 169 #endif
172 170
173 #endif 171 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698