OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkAAClip_DEFINED | 8 #ifndef SkAAClip_DEFINED |
9 #define SkAAClip_DEFINED | 9 #define SkAAClip_DEFINED |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * the mask, using kA8_Format | 56 * the mask, using kA8_Format |
57 */ | 57 */ |
58 void copyToMask(SkMask*) const; | 58 void copyToMask(SkMask*) const; |
59 | 59 |
60 // called internally | 60 // called internally |
61 | 61 |
62 bool quickContains(int left, int top, int right, int bottom) const; | 62 bool quickContains(int left, int top, int right, int bottom) const; |
63 bool quickContains(const SkIRect& r) const { | 63 bool quickContains(const SkIRect& r) const { |
64 return this->quickContains(r.fLeft, r.fTop, r.fRight, r.fBottom); | 64 return this->quickContains(r.fLeft, r.fTop, r.fRight, r.fBottom); |
65 } | 65 } |
| 66 bool quickContains(const SkRect& r) const; |
66 | 67 |
67 const uint8_t* findRow(int y, int* lastYForRow = nullptr) const; | 68 const uint8_t* findRow(int y, int* lastYForRow = nullptr) const; |
68 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = nullpt
r) const; | 69 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = nullpt
r) const; |
69 | 70 |
70 class Iter; | 71 class Iter; |
71 struct RunHead; | 72 struct RunHead; |
72 struct YOffset; | 73 struct YOffset; |
73 class Builder; | 74 class Builder; |
74 | 75 |
75 #ifdef SK_DEBUG | 76 #ifdef SK_DEBUG |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 enum { | 128 enum { |
128 kSize = 32 * 32 | 129 kSize = 32 * 32 |
129 }; | 130 }; |
130 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask | 131 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask |
131 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa | 132 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa |
132 | 133 |
133 void ensureRunsAndAA(); | 134 void ensureRunsAndAA(); |
134 }; | 135 }; |
135 | 136 |
136 #endif | 137 #endif |
OLD | NEW |