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

Side by Side Diff: src/utils/SkProxyCanvas.cpp

Issue 248083002: Make drawText calls non-virtual, to ease SkFont and TextBlob (https://codereview.chromium.org/24385… (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/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 #include "SkProxyCanvas.h" 8 #include "SkProxyCanvas.h"
9 9
10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) { 10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 109 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
110 const SkPaint* paint) { 110 const SkPaint* paint) {
111 fProxy->drawBitmapMatrix(bitmap, m, paint); 111 fProxy->drawBitmapMatrix(bitmap, m, paint);
112 } 112 }
113 113
114 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, 114 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
115 const SkPaint* paint) { 115 const SkPaint* paint) {
116 fProxy->drawSprite(bitmap, x, y, paint); 116 fProxy->drawSprite(bitmap, x, y, paint);
117 } 117 }
118 118
119 void SkProxyCanvas::drawText(const void* text, size_t byteLength, SkScalar x, 119 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
120 SkScalar y, const SkPaint& paint) { 120 const SkPaint& paint) {
121 fProxy->drawText(text, byteLength, x, y, paint); 121 fProxy->drawText(text, byteLength, x, y, paint);
122 } 122 }
123 123
124 void SkProxyCanvas::drawPosText(const void* text, size_t byteLength, 124 void SkProxyCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[],
125 const SkPoint pos[], const SkPaint& paint) { 125 const SkPaint& paint) {
126 fProxy->drawPosText(text, byteLength, pos, paint); 126 fProxy->drawPosText(text, byteLength, pos, paint);
127 } 127 }
128 128
129 void SkProxyCanvas::drawPosTextH(const void* text, size_t byteLength, 129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const Sk Scalar xpos[],
130 const SkScalar xpos[], SkScalar constY, 130 SkScalar constY, const SkPaint& paint) {
131 const SkPaint& paint) {
132 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint); 131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint);
133 } 132 }
134 133
135 void SkProxyCanvas::drawTextOnPath(const void* text, size_t byteLength, 134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
136 const SkPath& path, const SkMatrix* matrix, 135 const SkMatrix* matrix, const SkPaint& pain t) {
137 const SkPaint& paint) {
138 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint); 136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint);
139 } 137 }
140 138
141 void SkProxyCanvas::drawPicture(SkPicture& picture) { 139 void SkProxyCanvas::drawPicture(SkPicture& picture) {
142 fProxy->drawPicture(picture); 140 fProxy->drawPicture(picture);
143 } 141 }
144 142
145 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, 143 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount,
146 const SkPoint vertices[], const SkPoint texs[], 144 const SkPoint vertices[], const SkPoint texs[],
147 const SkColor colors[], SkXfermode* xmode, 145 const SkColor colors[], SkXfermode* xmode,
(...skipping 19 matching lines...) Expand all
167 fProxy->endCommentGroup(); 165 fProxy->endCommentGroup();
168 } 166 }
169 167
170 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 168 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
171 return fProxy->setBounder(bounder); 169 return fProxy->setBounder(bounder);
172 } 170 }
173 171
174 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 172 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
175 return fProxy->setDrawFilter(filter); 173 return fProxy->setDrawFilter(filter);
176 } 174 }
OLDNEW
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698