| 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 /** | 660 /** |
| 661 * The GrContext's cache of backend context state can be partially invalidated. | 661 * The GrContext's cache of backend context state can be partially invalidated. |
| 662 * These enums are specific to the GL backend and we'd add a new set for an alte
rnative backend. | 662 * These enums are specific to the GL backend and we'd add a new set for an alte
rnative backend. |
| 663 */ | 663 */ |
| 664 enum GrGLBackendState { | 664 enum GrGLBackendState { |
| 665 kRenderTarget_GrGLBackendState = 1 << 0, | 665 kRenderTarget_GrGLBackendState = 1 << 0, |
| 666 kTextureBinding_GrGLBackendState = 1 << 1, | 666 kTextureBinding_GrGLBackendState = 1 << 1, |
| 667 // View state stands for scissor and viewport | 667 // View state stands for scissor and viewport |
| 668 kView_GrGLBackendState = 1 << 2, | 668 kView_GrGLBackendState = 1 << 2, |
| 669 kBlend_GrGLBackendState = 1 << 3, | 669 kBlend_GrGLBackendState = 1 << 3, |
| 670 kAA_GrGLBackendState = 1 << 4, | 670 kMSAAEnable_GrGLBackendState = 1 << 4, |
| 671 kVertex_GrGLBackendState = 1 << 5, | 671 kVertex_GrGLBackendState = 1 << 5, |
| 672 kStencil_GrGLBackendState = 1 << 6, | 672 kStencil_GrGLBackendState = 1 << 6, |
| 673 kPixelStore_GrGLBackendState = 1 << 7, | 673 kPixelStore_GrGLBackendState = 1 << 7, |
| 674 kProgram_GrGLBackendState = 1 << 8, | 674 kProgram_GrGLBackendState = 1 << 8, |
| 675 kFixedFunction_GrGLBackendState = 1 << 9, | 675 kFixedFunction_GrGLBackendState = 1 << 9, |
| 676 kMisc_GrGLBackendState = 1 << 10, | 676 kMisc_GrGLBackendState = 1 << 10, |
| 677 kPathRendering_GrGLBackendState = 1 << 11, | 677 kPathRendering_GrGLBackendState = 1 << 11, |
| 678 kALL_GrGLBackendState = 0xffff | 678 kALL_GrGLBackendState = 0xffff |
| 679 }; | 679 }; |
| 680 | 680 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 705 } | 705 } |
| 706 | 706 |
| 707 /** | 707 /** |
| 708 * This value translates to reseting all the context state for any backend. | 708 * This value translates to reseting all the context state for any backend. |
| 709 */ | 709 */ |
| 710 static const uint32_t kAll_GrBackendState = 0xffffffff; | 710 static const uint32_t kAll_GrBackendState = 0xffffffff; |
| 711 | 711 |
| 712 /////////////////////////////////////////////////////////////////////////////// | 712 /////////////////////////////////////////////////////////////////////////////// |
| 713 | 713 |
| 714 #endif | 714 #endif |
| OLD | NEW |