OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
10 | 10 |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 fStencilFormatIndex = kUnknown_StencilIndex; | 546 fStencilFormatIndex = kUnknown_StencilIndex; |
547 } | 547 } |
548 GrGLenum fBaseInternalFormat; | 548 GrGLenum fBaseInternalFormat; |
549 GrGLenum fSizedInternalFormat; | 549 GrGLenum fSizedInternalFormat; |
550 GrGLenum fExternalFormat; | 550 GrGLenum fExternalFormat; |
551 GrGLenum fExternalType; | 551 GrGLenum fExternalType; |
552 | 552 |
553 // The <format> parameter to use for glTexImage and glTexSubImage. | 553 // The <format> parameter to use for glTexImage and glTexSubImage. |
554 // This is usually the same as fExternalFormat except for kSRGBA on some
GL contexts. | 554 // This is usually the same as fExternalFormat except for kSRGBA on some
GL contexts. |
555 GrGLenum fExternalFormatForTexImage; | 555 GrGLenum fExternalFormatForTexImage; |
| 556 // Either the base or sized internal format depending on the GL and conf
ig. |
| 557 GrGLenum fInternalFormatTexImage; |
556 | 558 |
557 // Index into GrGLCaps's list of stencil formats. Support is determined
experimentally and | 559 // Index into GrGLCaps's list of stencil formats. Support is determined
experimentally and |
558 // lazily. | 560 // lazily. |
559 int fStencilFormatIndex; | 561 int fStencilFormatIndex; |
560 enum { | 562 enum { |
561 // This indicates that a stencil format has not yet been determined
for the config. | 563 // This indicates that a stencil format has not yet been determined
for the config. |
562 kUnknown_StencilIndex = -1, | 564 kUnknown_StencilIndex = -1, |
563 // This indicates that there is no supported stencil format for the
config. | 565 // This indicates that there is no supported stencil format for the
config. |
564 kUnsupported_StencilFormatIndex = -2 | 566 kUnsupported_StencilFormatIndex = -2 |
565 }; | 567 }; |
566 }; | 568 }; |
567 | 569 |
568 ConfigEntry fConfigTable[kGrPixelConfigCnt]; | 570 ConfigEntry fConfigTable[kGrPixelConfigCnt]; |
569 | 571 |
570 typedef GrGpu INHERITED; | 572 typedef GrGpu INHERITED; |
571 friend class GrGLPathRendering; // For accessing setTextureUnit. | 573 friend class GrGLPathRendering; // For accessing setTextureUnit. |
572 }; | 574 }; |
573 | 575 |
574 #endif | 576 #endif |
OLD | NEW |