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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 267 #ifdef SK_DEBUG |
268 // Takes a pointer to a GrCaps, and will suppress prints if required | 268 // Takes a pointer to a GrContext, and will suppress prints if required |
269 #define GrCapsDebugf(caps, ...) \ | 269 #define GrContextDebugf(context, ...) \ |
270 if (!caps->suppressPrints()) { \ | 270 if (!context->suppressPrints()) { \ |
271 SkDebugf(__VA_ARGS__); \ | 271 SkDebugf(__VA_ARGS__); \ |
272 } | 272 } |
273 #else | 273 #else |
274 #define GrCapsDebugf(caps, ...) | 274 #define GrContextDebugf(context, ...) |
275 #endif | 275 #endif |
276 | 276 |
277 #endif | 277 #endif |
OLD | NEW |