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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 kStencil_GrGLBackendState = 1 << 6, | 613 kStencil_GrGLBackendState = 1 << 6, |
614 kPixelStore_GrGLBackendState = 1 << 7, | 614 kPixelStore_GrGLBackendState = 1 << 7, |
615 kProgram_GrGLBackendState = 1 << 8, | 615 kProgram_GrGLBackendState = 1 << 8, |
616 kFixedFunction_GrGLBackendState = 1 << 9, | 616 kFixedFunction_GrGLBackendState = 1 << 9, |
617 kMisc_GrGLBackendState = 1 << 10, | 617 kMisc_GrGLBackendState = 1 << 10, |
618 kPathRendering_GrGLBackendState = 1 << 11, | 618 kPathRendering_GrGLBackendState = 1 << 11, |
619 kALL_GrGLBackendState = 0xffff | 619 kALL_GrGLBackendState = 0xffff |
620 }; | 620 }; |
621 | 621 |
622 /** | 622 /** |
623 * The compressed texture formats that may be supported by the renderer. | |
624 * Make sure to check for the required capabilities using | |
625 * GrDrawTargetCaps::compressedTextureSupport | |
626 */ | |
627 enum GrCompressedFormat { | |
628 kUncompressed_GrCompressedFormat = -1, | |
629 kETC1_GrCompressedFormat = 0, | |
630 | |
631 kLast_GrCompressedFormat = kETC1_GrCompressedFormat | |
632 }; | |
633 static const size_t kCompressedFormatCount = kLast_GrCompressedFormat + 1; | |
634 | |
635 /** | |
636 * This value translates to reseting all the context state for any backend. | 623 * This value translates to reseting all the context state for any backend. |
637 */ | 624 */ |
638 static const uint32_t kAll_GrBackendState = 0xffffffff; | 625 static const uint32_t kAll_GrBackendState = 0xffffffff; |
639 | 626 |
640 /////////////////////////////////////////////////////////////////////////////// | 627 /////////////////////////////////////////////////////////////////////////////// |
641 | 628 |
642 #endif | 629 #endif |
OLD | NEW |