OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkRegionPriv_DEFINED | 10 #ifndef SkRegionPriv_DEFINED |
11 #define SkRegionPriv_DEFINED | 11 #define SkRegionPriv_DEFINED |
12 | 12 |
13 #include "SkRegion.h" | 13 #include "SkRegion.h" |
14 #include "SkAtomics.h" | 14 #include "../private/SkAtomics.h" |
15 | 15 |
16 #define assert_sentinel(value, isSentinel) \ | 16 #define assert_sentinel(value, isSentinel) \ |
17 SkASSERT(((value) == SkRegion::kRunTypeSentinel) == isSentinel) | 17 SkASSERT(((value) == SkRegion::kRunTypeSentinel) == isSentinel) |
18 | 18 |
19 //SkDEBUGCODE(extern int32_t gRgnAllocCounter;) | 19 //SkDEBUGCODE(extern int32_t gRgnAllocCounter;) |
20 | 20 |
21 #ifdef SK_DEBUG | 21 #ifdef SK_DEBUG |
22 // Given the first interval (just past the interval-count), compute the | 22 // Given the first interval (just past the interval-count), compute the |
23 // interval count, by search for the x-sentinel | 23 // interval count, by search for the x-sentinel |
24 // | 24 // |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 bounds->fRight = rite; | 227 bounds->fRight = rite; |
228 bounds->fBottom = bot; | 228 bounds->fBottom = bot; |
229 } | 229 } |
230 | 230 |
231 private: | 231 private: |
232 int32_t fYSpanCount; | 232 int32_t fYSpanCount; |
233 int32_t fIntervalCount; | 233 int32_t fIntervalCount; |
234 }; | 234 }; |
235 | 235 |
236 #endif | 236 #endif |
OLD | NEW |