OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
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 #ifndef GrNinePatch_DEFINED | 8 #ifndef GrNinePatch_DEFINED |
9 #define GrNinePatch_DEFINED | 9 #define GrNinePatch_DEFINED |
10 | 10 |
11 #include "GrColor.h" | 11 #include "GrColor.h" |
12 #include "SkCanvas.h" | |
13 | 12 |
14 class GrDrawBatch; | 13 class GrDrawBatch; |
15 class SkBitmap; | 14 class SkBitmap; |
16 class SkLatticeIter; | |
17 class SkMatrix; | 15 class SkMatrix; |
18 struct SkIRect; | 16 struct SkIRect; |
19 struct SkRect; | 17 struct SkRect; |
20 | 18 |
21 namespace GrNinePatch { | 19 namespace GrNinePatch { |
22 GrDrawBatch* CreateNonAA(GrColor color, const SkMatrix& viewMatrix, int imageWid
th, int imageHeight, | 20 GrDrawBatch* CreateNonAA(GrColor color, const SkMatrix& viewMatrix, int imageWid
th, int imageHeight, |
23 std::unique_ptr<SkLatticeIter> iter, const SkRect& dst)
; | 21 const SkIRect& center, const SkRect& dst); |
24 }; | 22 }; |
25 | 23 |
26 #endif | 24 #endif |
OLD | NEW |