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

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

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/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::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 119 void SkProxyCanvas::drawText(const void* text, size_t byteLength, SkScalar x,
120 const SkPaint& paint) { 120 SkScalar y, 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::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[], 124 void SkProxyCanvas::drawPosText(const void* text, size_t byteLength,
125 const SkPaint& paint) { 125 const SkPoint pos[], const SkPaint& paint) {
126 fProxy->drawPosText(text, byteLength, pos, paint); 126 fProxy->drawPosText(text, byteLength, pos, paint);
127 } 127 }
128 128
129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const Sk Scalar xpos[], 129 void SkProxyCanvas::drawPosTextH(const void* text, size_t byteLength,
130 SkScalar constY, const SkPaint& paint) { 130 const SkScalar xpos[], SkScalar constY,
131 const SkPaint& paint) {
131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint); 132 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint);
132 } 133 }
133 134
134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 135 void SkProxyCanvas::drawTextOnPath(const void* text, size_t byteLength,
135 const SkMatrix* matrix, const SkPaint& pain t) { 136 const SkPath& path, const SkMatrix* matrix,
137 const SkPaint& paint) {
136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint); 138 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint);
137 } 139 }
138 140
139 void SkProxyCanvas::drawPicture(SkPicture& picture) { 141 void SkProxyCanvas::drawPicture(SkPicture& picture) {
140 fProxy->drawPicture(picture); 142 fProxy->drawPicture(picture);
141 } 143 }
142 144
143 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, 145 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount,
144 const SkPoint vertices[], const SkPoint texs[], 146 const SkPoint vertices[], const SkPoint texs[],
145 const SkColor colors[], SkXfermode* xmode, 147 const SkColor colors[], SkXfermode* xmode,
(...skipping 19 matching lines...) Expand all
165 fProxy->endCommentGroup(); 167 fProxy->endCommentGroup();
166 } 168 }
167 169
168 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 170 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
169 return fProxy->setBounder(bounder); 171 return fProxy->setBounder(bounder);
170 } 172 }
171 173
172 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 174 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
173 return fProxy->setDrawFilter(filter); 175 return fProxy->setDrawFilter(filter);
174 } 176 }
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