| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 void SkProxyCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, | 89 void SkProxyCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
| 90 const SkPaint& paint) { | 90 const SkPaint& paint) { |
| 91 fProxy->drawDRRect(outer, inner, paint); | 91 fProxy->drawDRRect(outer, inner, paint); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { | 94 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
| 95 fProxy->drawPath(path, paint); | 95 fProxy->drawPath(path, paint); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void SkProxyCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top, |
| 99 const SkPaint* paint) { |
| 100 fProxy->drawImage(image, left, top, paint); |
| 101 } |
| 102 |
| 103 void SkProxyCanvas::drawImageRect(const SkImage* image, const SkRect* src, |
| 104 const SkRect& dst, |
| 105 const SkPaint* paint) { |
| 106 fProxy->drawImageRect(image, src, dst, paint); |
| 107 } |
| 108 |
| 98 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, | 109 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
| 99 const SkPaint* paint) { | 110 const SkPaint* paint) { |
| 100 fProxy->drawBitmap(bitmap, x, y, paint); | 111 fProxy->drawBitmap(bitmap, x, y, paint); |
| 101 } | 112 } |
| 102 | 113 |
| 103 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, | 114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, |
| 104 const SkRect& dst, const SkPaint* paint, | 115 const SkRect& dst, const SkPaint* paint, |
| 105 DrawBitmapRectFlags flags) { | 116 DrawBitmapRectFlags flags) { |
| 106 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); | 117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
| 107 } | 118 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 fProxy->addComment(kywd, value); | 184 fProxy->addComment(kywd, value); |
| 174 } | 185 } |
| 175 | 186 |
| 176 void SkProxyCanvas::endCommentGroup() { | 187 void SkProxyCanvas::endCommentGroup() { |
| 177 fProxy->endCommentGroup(); | 188 fProxy->endCommentGroup(); |
| 178 } | 189 } |
| 179 | 190 |
| 180 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 191 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 181 return fProxy->setDrawFilter(filter); | 192 return fProxy->setDrawFilter(filter); |
| 182 } | 193 } |
| OLD | NEW |