OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
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 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; | 156 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; |
157 } | 157 } |
158 | 158 |
159 /////////////////////////////////////////////////////////////////////////////// | 159 /////////////////////////////////////////////////////////////////////////////// |
160 | 160 |
161 /** | 161 /** |
162 * 16.16 fixed point type | 162 * 16.16 fixed point type |
163 */ | 163 */ |
164 typedef int32_t GrFixed; | 164 typedef int32_t GrFixed; |
165 | 165 |
166 #if GR_DEBUG | 166 #if SK_DEBUG |
167 | 167 |
168 static inline int16_t GrToS16(intptr_t x) { | 168 static inline int16_t GrToS16(intptr_t x) { |
169 SkASSERT((int16_t)x == x); | 169 SkASSERT((int16_t)x == x); |
170 return (int16_t)x; | 170 return (int16_t)x; |
171 } | 171 } |
172 | 172 |
173 #else | 173 #else |
174 | 174 |
175 #define GrToS16(x) x | 175 #define GrToS16(x) x |
176 | 176 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 }; | 621 }; |
622 | 622 |
623 /** | 623 /** |
624 * This value translates to reseting all the context state for any backend. | 624 * This value translates to reseting all the context state for any backend. |
625 */ | 625 */ |
626 static const uint32_t kAll_GrBackendState = 0xffffffff; | 626 static const uint32_t kAll_GrBackendState = 0xffffffff; |
627 | 627 |
628 /////////////////////////////////////////////////////////////////////////////// | 628 /////////////////////////////////////////////////////////////////////////////// |
629 | 629 |
630 #endif | 630 #endif |
OLD | NEW |