| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 inline SkPath::FillType WebCoreWindRuleToSkFillType(WindRule rule) { | 94 inline SkPath::FillType WebCoreWindRuleToSkFillType(WindRule rule) { |
| 95 return static_cast<SkPath::FillType>(rule); | 95 return static_cast<SkPath::FillType>(rule); |
| 96 } | 96 } |
| 97 | 97 |
| 98 inline WindRule SkFillTypeToWindRule(SkPath::FillType fillType) { | 98 inline WindRule SkFillTypeToWindRule(SkPath::FillType fillType) { |
| 99 switch (fillType) { | 99 switch (fillType) { |
| 100 case SkPath::kWinding_FillType: | 100 case SkPath::kWinding_FillType: |
| 101 case SkPath::kEvenOdd_FillType: | 101 case SkPath::kEvenOdd_FillType: |
| 102 return static_cast<WindRule>(fillType); | 102 return static_cast<WindRule>(fillType); |
| 103 default: | 103 default: |
| 104 ASSERT_NOT_REACHED(); | 104 NOTREACHED(); |
| 105 break; | 105 break; |
| 106 } | 106 } |
| 107 return RULE_NONZERO; | 107 return RULE_NONZERO; |
| 108 } | 108 } |
| 109 | 109 |
| 110 SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&); | 110 SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&); |
| 111 | 111 |
| 112 bool nearlyIntegral(float value); | 112 bool nearlyIntegral(float value); |
| 113 | 113 |
| 114 InterpolationQuality limitInterpolationQuality(const GraphicsContext&, | 114 InterpolationQuality limitInterpolationQuality(const GraphicsContext&, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // paint.setShader(SkShader::MakeFoo(...)); | 173 // paint.setShader(SkShader::MakeFoo(...)); |
| 174 // | 174 // |
| 175 // b) shared ownership | 175 // b) shared ownership |
| 176 // | 176 // |
| 177 // sk_sp<SkShader> shader = SkShader::MakeFoo(...); | 177 // sk_sp<SkShader> shader = SkShader::MakeFoo(...); |
| 178 // paint.setShader(shader); | 178 // paint.setShader(shader); |
| 179 | 179 |
| 180 } // namespace blink | 180 } // namespace blink |
| 181 | 181 |
| 182 #endif // SkiaUtils_h | 182 #endif // SkiaUtils_h |
| OLD | NEW |