OLD | NEW |
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 Loading... |
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::drawPicture(SkPicture& picture) { | 139 void SkProxyCanvas::onDrawPicture(const SkPicture* picture) { |
140 fProxy->drawPicture(picture); | 140 fProxy->drawPicture(picture); |
141 } | 141 } |
142 | 142 |
143 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, | 143 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, |
144 const SkPoint vertices[], const SkPoint texs[], | 144 const SkPoint vertices[], const SkPoint texs[], |
145 const SkColor colors[], SkXfermode* xmode, | 145 const SkColor colors[], SkXfermode* xmode, |
146 const uint16_t indices[], int indexCount, | 146 const uint16_t indices[], int indexCount, |
147 const SkPaint& paint) { | 147 const SkPaint& paint) { |
148 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, | 148 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, |
149 xmode, indices, indexCount, paint); | 149 xmode, indices, indexCount, paint); |
(...skipping 11 matching lines...) Expand all Loading... |
161 fProxy->addComment(kywd, value); | 161 fProxy->addComment(kywd, value); |
162 } | 162 } |
163 | 163 |
164 void SkProxyCanvas::endCommentGroup() { | 164 void SkProxyCanvas::endCommentGroup() { |
165 fProxy->endCommentGroup(); | 165 fProxy->endCommentGroup(); |
166 } | 166 } |
167 | 167 |
168 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 168 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
169 return fProxy->setDrawFilter(filter); | 169 return fProxy->setDrawFilter(filter); |
170 } | 170 } |
OLD | NEW |