| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool SkProxyCanvas::concat(const SkMatrix& matrix) { | 53 bool SkProxyCanvas::concat(const SkMatrix& matrix) { |
| 54 return fProxy->concat(matrix); | 54 return fProxy->concat(matrix); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void SkProxyCanvas::setMatrix(const SkMatrix& matrix) { | 57 void SkProxyCanvas::setMatrix(const SkMatrix& matrix) { |
| 58 fProxy->setMatrix(matrix); | 58 fProxy->setMatrix(matrix); |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool SkProxyCanvas::clipRect(const SkRect& rect, SkRegion::Op op, bool doAA) { | 61 void SkProxyCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
| 62 return fProxy->clipRect(rect, op, doAA); | 62 fProxy->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool SkProxyCanvas::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA)
{ | 65 void SkProxyCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeS
tyle edgeStyle) { |
| 66 return fProxy->clipRRect(rrect, op, doAA); | 66 fProxy->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool SkProxyCanvas::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) { | 69 void SkProxyCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
| 70 return fProxy->clipPath(path, op, doAA); | 70 fProxy->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool SkProxyCanvas::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 73 void SkProxyCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 74 return fProxy->clipRegion(deviceRgn, op); | 74 fProxy->clipRegion(deviceRgn, op); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void SkProxyCanvas::drawPaint(const SkPaint& paint) { | 77 void SkProxyCanvas::drawPaint(const SkPaint& paint) { |
| 78 fProxy->drawPaint(paint); | 78 fProxy->drawPaint(paint); |
| 79 } | 79 } |
| 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 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 fProxy->endCommentGroup(); | 176 fProxy->endCommentGroup(); |
| 177 } | 177 } |
| 178 | 178 |
| 179 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { | 179 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { |
| 180 return fProxy->setBounder(bounder); | 180 return fProxy->setBounder(bounder); |
| 181 } | 181 } |
| 182 | 182 |
| 183 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 183 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 184 return fProxy->setDrawFilter(filter); | 184 return fProxy->setDrawFilter(filter); |
| 185 } | 185 } |
| OLD | NEW |