OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 The Android Open Source Project |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkCanvasPriv.h" | 10 #include "SkCanvasPriv.h" |
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 bounds = &paint.computeFastBounds(pathBounds, &storage); | 2117 bounds = &paint.computeFastBounds(pathBounds, &storage); |
2118 if (this->quickReject(*bounds)) { | 2118 if (this->quickReject(*bounds)) { |
2119 return; | 2119 return; |
2120 } | 2120 } |
2121 } | 2121 } |
2122 | 2122 |
2123 const SkRect& r = path.getBounds(); | 2123 const SkRect& r = path.getBounds(); |
2124 if (r.width() <= 0 && r.height() <= 0) { | 2124 if (r.width() <= 0 && r.height() <= 0) { |
2125 if (path.isInverseFillType()) { | 2125 if (path.isInverseFillType()) { |
2126 this->internalDrawPaint(paint); | 2126 this->internalDrawPaint(paint); |
2127 return; | |
2128 } | 2127 } |
| 2128 return; |
2129 } | 2129 } |
2130 | 2130 |
2131 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, bounds) | 2131 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, bounds) |
2132 | 2132 |
2133 while (iter.next()) { | 2133 while (iter.next()) { |
2134 iter.fDevice->drawPath(iter, path, looper.paint()); | 2134 iter.fDevice->drawPath(iter, path, looper.paint()); |
2135 } | 2135 } |
2136 | 2136 |
2137 LOOPER_END | 2137 LOOPER_END |
2138 } | 2138 } |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2897 } | 2897 } |
2898 | 2898 |
2899 if (matrix) { | 2899 if (matrix) { |
2900 canvas->concat(*matrix); | 2900 canvas->concat(*matrix); |
2901 } | 2901 } |
2902 } | 2902 } |
2903 | 2903 |
2904 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { | 2904 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { |
2905 fCanvas->restoreToCount(fSaveCount); | 2905 fCanvas->restoreToCount(fSaveCount); |
2906 } | 2906 } |
OLD | NEW |