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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 kNoStencil_GrTextureFlagBit = 0x2, | 437 kNoStencil_GrTextureFlagBit = 0x2, |
438 /** | 438 /** |
439 * Hint that the CPU may modify this texture after creation. | 439 * Hint that the CPU may modify this texture after creation. |
440 */ | 440 */ |
441 kDynamicUpdate_GrTextureFlagBit = 0x4, | 441 kDynamicUpdate_GrTextureFlagBit = 0x4, |
442 /** | 442 /** |
443 * Indicates that all allocations (color buffer, FBO completeness, etc) | 443 * Indicates that all allocations (color buffer, FBO completeness, etc) |
444 * should be verified. | 444 * should be verified. |
445 */ | 445 */ |
446 kCheckAllocation_GrTextureFlagBit = 0x8, | 446 kCheckAllocation_GrTextureFlagBit = 0x8, |
447 | |
448 kDummy_GrTextureFlagBit, | |
449 kLastPublic_GrTextureFlagBit = kDummy_GrTextureFlagBit-1, | |
450 }; | 447 }; |
451 | 448 |
452 GR_MAKE_BITFIELD_OPS(GrTextureFlags) | 449 GR_MAKE_BITFIELD_OPS(GrTextureFlags) |
453 | 450 |
454 /** | 451 /** |
455 * Some textures will be stored such that the upper and left edges of the conten
t meet at the | 452 * Some textures will be stored such that the upper and left edges of the conten
t meet at the |
456 * the origin (in texture coord space) and for other textures the lower and left
edges meet at | 453 * the origin (in texture coord space) and for other textures the lower and left
edges meet at |
457 * the origin. kDefault_GrSurfaceOrigin sets textures to TopLeft, and render tar
gets | 454 * the origin. kDefault_GrSurfaceOrigin sets textures to TopLeft, and render tar
gets |
458 * to BottomLeft. | 455 * to BottomLeft. |
459 */ | 456 */ |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 public: | 717 public: |
721 GrAutoMalloc() : INHERITED() {} | 718 GrAutoMalloc() : INHERITED() {} |
722 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} | 719 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} |
723 virtual ~GrAutoMalloc() {} | 720 virtual ~GrAutoMalloc() {} |
724 private: | 721 private: |
725 typedef GrAutoMallocBaseType INHERITED; | 722 typedef GrAutoMallocBaseType INHERITED; |
726 }; | 723 }; |
727 | 724 |
728 #undef GrAutoMallocBaseType | 725 #undef GrAutoMallocBaseType |
729 #endif | 726 #endif |
OLD | NEW |