| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 bool operator!=(const GrScissorState& other) const { return !(*this == other
); } | 257 bool operator!=(const GrScissorState& other) const { return !(*this == other
); } |
| 258 | 258 |
| 259 bool enabled() const { return fEnabled; } | 259 bool enabled() const { return fEnabled; } |
| 260 const SkIRect& rect() const { return fRect; } | 260 const SkIRect& rect() const { return fRect; } |
| 261 | 261 |
| 262 private: | 262 private: |
| 263 bool fEnabled; | 263 bool fEnabled; |
| 264 SkIRect fRect; | 264 SkIRect fRect; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 #ifdef SK_DEBUG | |
| 268 // Takes a pointer to a GrContext, and will suppress prints if required | |
| 269 #define GrContextDebugf(context, format, ...) \ | |
| 270 if (!context->suppressPrints()) { \ | |
| 271 SkDebugf(format, ##__VA_ARGS__); \ | |
| 272 } | |
| 273 #else | |
| 274 #define GrContextDebugf(context, format, ...) | |
| 275 #endif | 267 #endif |
| 276 | |
| 277 #endif | |
| OLD | NEW |