| 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::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 Loading... |
| 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 } |
| OLD | NEW |