OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrTypesPriv_DEFINED | 8 #ifndef GrTypesPriv_DEFINED |
9 #define GrTypesPriv_DEFINED | 9 #define GrTypesPriv_DEFINED |
10 | 10 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 bool operator!=(const GrScissorState& other) const { return !(*this == other ); } | 260 bool operator!=(const GrScissorState& other) const { return !(*this == other ); } |
261 | 261 |
262 bool enabled() const { return fEnabled; } | 262 bool enabled() const { return fEnabled; } |
263 const SkIRect& rect() const { return fRect; } | 263 const SkIRect& rect() const { return fRect; } |
264 | 264 |
265 private: | 265 private: |
266 bool fEnabled; | 266 bool fEnabled; |
267 SkIRect fRect; | 267 SkIRect fRect; |
268 }; | 268 }; |
269 | 269 |
270 /** | |
271 * Indicates the transfer direction for a transfer buffer | |
bsalomon
2016/01/05 14:01:17
nit the single *s should be one space out to align
jvanverth1
2016/01/05 17:21:28
Done.
| |
272 */ | |
273 enum TransferType { | |
274 /** Caller intends to use the buffer to transfer data to the GPU */ | |
275 kCpuToGpu_TransferType, | |
276 /** Caller intends to use the buffer to transfer data from the GPU */ | |
277 kGpuToCpu_TransferType | |
278 }; | |
279 | |
280 | |
270 #ifdef SK_DEBUG | 281 #ifdef SK_DEBUG |
271 // Takes a pointer to a GrCaps, and will suppress prints if required | 282 // Takes a pointer to a GrCaps, and will suppress prints if required |
272 #define GrCapsDebugf(caps, ...) \ | 283 #define GrCapsDebugf(caps, ...) \ |
273 if (!caps->suppressPrints()) { \ | 284 if (!caps->suppressPrints()) { \ |
274 SkDebugf(__VA_ARGS__); \ | 285 SkDebugf(__VA_ARGS__); \ |
275 } | 286 } |
276 #else | 287 #else |
277 #define GrCapsDebugf(caps, ...) | 288 #define GrCapsDebugf(caps, ...) |
278 #endif | 289 #endif |
279 | 290 |
280 #endif | 291 #endif |
OLD | NEW |