| 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 "SkNinePatch.h" | 9 #include "SkNinePatch.h" |
| 11 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 (margins.fTop + margins.fBottom); | 324 (margins.fTop + margins.fBottom); |
| 326 yDivs[1] = yDivs[0]; | 325 yDivs[1] = yDivs[0]; |
| 327 } | 326 } |
| 328 | 327 |
| 329 SkNinePatch::DrawMesh(canvas, bounds, bitmap, | 328 SkNinePatch::DrawMesh(canvas, bounds, bitmap, |
| 330 xDivs, 2, yDivs, 2, paint); | 329 xDivs, 2, yDivs, 2, paint); |
| 331 } else { | 330 } else { |
| 332 drawNineViaRects(canvas, bounds, bitmap, margins, paint); | 331 drawNineViaRects(canvas, bounds, bitmap, margins, paint); |
| 333 } | 332 } |
| 334 } | 333 } |
| OLD | NEW |