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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 void SkProxyCanvas::drawPoints(PointMode mode, size_t count, | 81 void SkProxyCanvas::drawPoints(PointMode mode, size_t count, |
82 const SkPoint pts[], const SkPaint& paint) { | 82 const SkPoint pts[], const SkPaint& paint) { |
83 fProxy->drawPoints(mode, count, pts, paint); | 83 fProxy->drawPoints(mode, count, pts, paint); |
84 } | 84 } |
85 | 85 |
86 void SkProxyCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { | 86 void SkProxyCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { |
87 fProxy->drawOval(rect, paint); | 87 fProxy->drawOval(rect, paint); |
88 } | 88 } |
89 | 89 |
90 void SkProxyCanvas::onDrawRect(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::onDrawPath(const SkPath& path, const SkPaint& paint) { | 98 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
99 fProxy->drawPath(path, paint); | 99 fProxy->drawPath(path, paint); |
100 } | 100 } |
101 | 101 |
102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, | 102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
103 const SkPaint* paint) { | 103 const SkPaint* paint) { |
104 fProxy->drawBitmap(bitmap, x, y, paint); | 104 fProxy->drawBitmap(bitmap, x, y, paint); |
105 } | 105 } |
106 | 106 |
107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, | 107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s
rc, |
108 const SkRect& dst, const SkPaint* paint, | 108 const SkRect& dst, const SkPaint* paint, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 fProxy->endCommentGroup(); | 171 fProxy->endCommentGroup(); |
172 } | 172 } |
173 | 173 |
174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { | 174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { |
175 return fProxy->setBounder(bounder); | 175 return fProxy->setBounder(bounder); |
176 } | 176 } |
177 | 177 |
178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
179 return fProxy->setDrawFilter(filter); | 179 return fProxy->setDrawFilter(filter); |
180 } | 180 } |
OLD | NEW |