| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |