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

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

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 years, 4 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::onDrawPicture(const SkPicture* picture) { 139 void SkProxyCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matr ix,
140 fProxy->drawPicture(picture); 140 const SkPaint* paint) {
141 fProxy->drawPicture(picture, matrix, paint);
141 } 142 }
142 143
143 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, 144 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount,
144 const SkPoint vertices[], const SkPoint texs[], 145 const SkPoint vertices[], const SkPoint texs[],
145 const SkColor colors[], SkXfermode* xmode, 146 const SkColor colors[], SkXfermode* xmode,
146 const uint16_t indices[], int indexCount, 147 const uint16_t indices[], int indexCount,
147 const SkPaint& paint) { 148 const SkPaint& paint) {
148 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, 149 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors,
149 xmode, indices, indexCount, paint); 150 xmode, indices, indexCount, paint);
150 } 151 }
(...skipping 14 matching lines...) Expand all
165 fProxy->addComment(kywd, value); 166 fProxy->addComment(kywd, value);
166 } 167 }
167 168
168 void SkProxyCanvas::endCommentGroup() { 169 void SkProxyCanvas::endCommentGroup() {
169 fProxy->endCommentGroup(); 170 fProxy->endCommentGroup();
170 } 171 }
171 172
172 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 173 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
173 return fProxy->setDrawFilter(filter); 174 return fProxy->setDrawFilter(filter);
174 } 175 }
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