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 | 89 |
90 void SkProxyCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { | 90 void SkProxyCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { |
91 fProxy->drawRect(rect, paint); | 91 fProxy->drawRect(rect, paint); |
92 } | 92 } |
93 | 93 |
94 void SkProxyCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { | 94 void SkProxyCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { |
95 fProxy->drawRRect(rrect, paint); | 95 fProxy->drawRRect(rrect, paint); |
96 } | 96 } |
97 | 97 |
| 98 void SkProxyCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
| 99 const SkPaint& paint) { |
| 100 fProxy->drawDRRect(outer, inner, paint); |
| 101 } |
| 102 |
98 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { | 103 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
99 fProxy->drawPath(path, paint); | 104 fProxy->drawPath(path, paint); |
100 } | 105 } |
101 | 106 |
102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, | 107 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
103 const SkPaint* paint) { | 108 const SkPaint* paint) { |
104 fProxy->drawBitmap(bitmap, x, y, paint); | 109 fProxy->drawBitmap(bitmap, x, y, paint); |
105 } | 110 } |
106 | 111 |
107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, | 112 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 fProxy->endCommentGroup(); | 176 fProxy->endCommentGroup(); |
172 } | 177 } |
173 | 178 |
174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { | 179 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { |
175 return fProxy->setBounder(bounder); | 180 return fProxy->setBounder(bounder); |
176 } | 181 } |
177 | 182 |
178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 183 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
179 return fProxy->setDrawFilter(filter); | 184 return fProxy->setDrawFilter(filter); |
180 } | 185 } |
OLD | NEW |