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 #ifndef GrTypes_DEFINED | 9 #ifndef GrTypes_DEFINED |
10 #define GrTypes_DEFINED | 10 #define GrTypes_DEFINED |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 * Optional bitfield flags that can be set on GrSurfaceDesc (below). | 383 * Optional bitfield flags that can be set on GrSurfaceDesc (below). |
384 */ | 384 */ |
385 enum GrSurfaceFlags { | 385 enum GrSurfaceFlags { |
386 kNone_GrSurfaceFlags = 0x0, | 386 kNone_GrSurfaceFlags = 0x0, |
387 /** | 387 /** |
388 * Creates a texture that can be rendered to as a GrRenderTarget. Use | 388 * Creates a texture that can be rendered to as a GrRenderTarget. Use |
389 * GrTexture::asRenderTarget() to access. | 389 * GrTexture::asRenderTarget() to access. |
390 */ | 390 */ |
391 kRenderTarget_GrSurfaceFlag = 0x1, | 391 kRenderTarget_GrSurfaceFlag = 0x1, |
392 /** | 392 /** |
393 * By default all render targets have an associated stencil buffer that | 393 * DEPRECATED. This has no effect. |
394 * may be required for path filling. This flag overrides stencil buffer | |
395 * creation. | |
396 * MAKE THIS PRIVATE? | |
397 */ | 394 */ |
398 kNoStencil_GrSurfaceFlag = 0x2, | 395 kNoStencil_GrSurfaceFlag = 0x2, |
399 /** | 396 /** |
400 * Indicates that all allocations (color buffer, FBO completeness, etc) | 397 * Indicates that all allocations (color buffer, FBO completeness, etc) |
401 * should be verified. | 398 * should be verified. |
402 */ | 399 */ |
403 kCheckAllocation_GrSurfaceFlag = 0x4, | 400 kCheckAllocation_GrSurfaceFlag = 0x4, |
404 }; | 401 }; |
405 | 402 |
406 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags) | 403 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags) |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 public: | 626 public: |
630 GrAutoMalloc() : INHERITED() {} | 627 GrAutoMalloc() : INHERITED() {} |
631 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} | 628 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} |
632 virtual ~GrAutoMalloc() {} | 629 virtual ~GrAutoMalloc() {} |
633 private: | 630 private: |
634 typedef GrAutoMallocBaseType INHERITED; | 631 typedef GrAutoMallocBaseType INHERITED; |
635 }; | 632 }; |
636 | 633 |
637 #undef GrAutoMallocBaseType | 634 #undef GrAutoMallocBaseType |
638 #endif | 635 #endif |
OLD | NEW |