| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const SkPaint* paint) { | 110 const SkPaint* paint) { |
| 111 fProxy->drawBitmap(bitmap, x, y, paint); | 111 fProxy->drawBitmap(bitmap, x, y, paint); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, | 114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, |
| 115 const SkRect& dst, const SkPaint* paint, | 115 const SkRect& dst, const SkPaint* paint, |
| 116 DrawBitmapRectFlags flags) { | 116 DrawBitmapRectFlags flags) { |
| 117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); | 117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
| 118 } | 118 } |
| 119 | 119 |
| 120 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | |
| 121 const SkPaint* paint) { | |
| 122 fProxy->drawBitmapMatrix(bitmap, m, paint); | |
| 123 } | |
| 124 | |
| 125 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, | 120 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
| 126 const SkPaint* paint) { | 121 const SkPaint* paint) { |
| 127 fProxy->drawSprite(bitmap, x, y, paint); | 122 fProxy->drawSprite(bitmap, x, y, paint); |
| 128 } | 123 } |
| 129 | 124 |
| 130 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x,
SkScalar y, | 125 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x,
SkScalar y, |
| 131 const SkPaint& paint) { | 126 const SkPaint& paint) { |
| 132 fProxy->drawText(text, byteLength, x, y, paint); | 127 fProxy->drawText(text, byteLength, x, y, paint); |
| 133 } | 128 } |
| 134 | 129 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 fProxy->addComment(kywd, value); | 179 fProxy->addComment(kywd, value); |
| 185 } | 180 } |
| 186 | 181 |
| 187 void SkProxyCanvas::endCommentGroup() { | 182 void SkProxyCanvas::endCommentGroup() { |
| 188 fProxy->endCommentGroup(); | 183 fProxy->endCommentGroup(); |
| 189 } | 184 } |
| 190 | 185 |
| 191 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 186 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 192 return fProxy->setDrawFilter(filter); | 187 return fProxy->setDrawFilter(filter); |
| 193 } | 188 } |
| OLD | NEW |