| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 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 | 8 |
| 9 #include "SkPathEffect.h" | 9 #include "SkPathEffect.h" |
| 10 #include "SkPath.h" | 10 #include "SkPath.h" |
| 11 #include "SkFlattenableBuffers.h" | 11 #include "SkFlattenableBuffers.h" |
| 12 | 12 |
| 13 /////////////////////////////////////////////////////////////////////////////// | 13 /////////////////////////////////////////////////////////////////////////////// |
| 14 | 14 |
| 15 SK_DEFINE_INST_COUNT(SkPathEffect) | |
| 16 | |
| 17 void SkPathEffect::computeFastBounds(SkRect* dst, const SkRect& src) const { | 15 void SkPathEffect::computeFastBounds(SkRect* dst, const SkRect& src) const { |
| 18 *dst = src; | 16 *dst = src; |
| 19 } | 17 } |
| 20 | 18 |
| 21 bool SkPathEffect::asPoints(PointData* results, const SkPath& src, | 19 bool SkPathEffect::asPoints(PointData* results, const SkPath& src, |
| 22 const SkStrokeRec&, const SkMatrix&, const SkRect*) const { | 20 const SkStrokeRec&, const SkMatrix&, const SkRect*) const { |
| 23 return false; | 21 return false; |
| 24 } | 22 } |
| 25 | 23 |
| 26 /////////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 70 } |
| 73 | 71 |
| 74 /////////////////////////////////////////////////////////////////////////////// | 72 /////////////////////////////////////////////////////////////////////////////// |
| 75 | 73 |
| 76 bool SkSumPathEffect::filterPath(SkPath* dst, const SkPath& src, | 74 bool SkSumPathEffect::filterPath(SkPath* dst, const SkPath& src, |
| 77 SkStrokeRec* rec, const SkRect* cullRect) const { | 75 SkStrokeRec* rec, const SkRect* cullRect) const { |
| 78 // use bit-or so that we always call both, even if the first one succeeds | 76 // use bit-or so that we always call both, even if the first one succeeds |
| 79 return fPE0->filterPath(dst, src, rec, cullRect) | | 77 return fPE0->filterPath(dst, src, rec, cullRect) | |
| 80 fPE1->filterPath(dst, src, rec, cullRect); | 78 fPE1->filterPath(dst, src, rec, cullRect); |
| 81 } | 79 } |
| OLD | NEW |