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

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

Issue 499413002: SkTextBlob plumbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review comments 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 | « 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const Sk Scalar xpos[], 129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const Sk Scalar xpos[],
130 SkScalar constY, const SkPaint& paint) { 130 SkScalar constY, const SkPaint& paint) {
131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint); 131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint);
132 } 132 }
133 133
134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
135 const SkMatrix* matrix, const SkPaint& pain t) { 135 const SkMatrix* matrix, const SkPaint& pain t) {
136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint); 136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint);
137 } 137 }
138 138
139 void SkProxyCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
140 const SkPaint& paint) {
141 fProxy->drawTextBlob(blob, x, y, paint);
142 }
143
139 void SkProxyCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matr ix, 144 void SkProxyCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matr ix,
140 const SkPaint* paint) { 145 const SkPaint* paint) {
141 fProxy->drawPicture(picture, matrix, paint); 146 fProxy->drawPicture(picture, matrix, paint);
142 } 147 }
143 148
144 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, 149 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount,
145 const SkPoint vertices[], const SkPoint texs[], 150 const SkPoint vertices[], const SkPoint texs[],
146 const SkColor colors[], SkXfermode* xmode, 151 const SkColor colors[], SkXfermode* xmode,
147 const uint16_t indices[], int indexCount, 152 const uint16_t indices[], int indexCount,
148 const SkPaint& paint) { 153 const SkPaint& paint) {
(...skipping 19 matching lines...) Expand all
168 fProxy->addComment(kywd, value); 173 fProxy->addComment(kywd, value);
169 } 174 }
170 175
171 void SkProxyCanvas::endCommentGroup() { 176 void SkProxyCanvas::endCommentGroup() {
172 fProxy->endCommentGroup(); 177 fProxy->endCommentGroup();
173 } 178 }
174 179
175 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 180 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
176 return fProxy->setDrawFilter(filter); 181 return fProxy->setDrawFilter(filter);
177 } 182 }
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