OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkRasterizer.h" | 9 #include "SkRasterizer.h" |
11 #include "SkDraw.h" | 10 #include "SkDraw.h" |
(...skipping 25 matching lines...) Expand all Loading... |
37 */ | 36 */ |
38 bool SkRasterizer::onRasterize(const SkPath& fillPath, const SkMatrix& matrix, | 37 bool SkRasterizer::onRasterize(const SkPath& fillPath, const SkMatrix& matrix, |
39 const SkIRect* clipBounds, | 38 const SkIRect* clipBounds, |
40 SkMask* mask, SkMask::CreateMode mode) const { | 39 SkMask* mask, SkMask::CreateMode mode) const { |
41 SkPath devPath; | 40 SkPath devPath; |
42 | 41 |
43 fillPath.transform(matrix, &devPath); | 42 fillPath.transform(matrix, &devPath); |
44 return SkDraw::DrawToMask(devPath, clipBounds, nullptr, nullptr, mask, mode, | 43 return SkDraw::DrawToMask(devPath, clipBounds, nullptr, nullptr, mask, mode, |
45 SkPaint::kFill_Style); | 44 SkPaint::kFill_Style); |
46 } | 45 } |
OLD | NEW |