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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 int width, | 123 int width, |
124 int height) over
ride; | 124 int height) over
ride; |
125 | 125 |
126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 126 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
127 GrPixelConfig config) const
override; | 127 GrPixelConfig config) const
override; |
128 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 128 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
129 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; | 129 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; |
130 | 130 |
131 /** If texture swizzling is available using tex parameters then it is prefer
red over mangling | 131 /** If texture swizzling is available using tex parameters then it is prefer
red over mangling |
132 the generated shader code. This potentially allows greater reuse of cach
ed shaders. */ | 132 the generated shader code. This potentially allows greater reuse of cach
ed shaders. */ |
133 static const GrGLenum* GetTexParamSwizzle(GrPixelConfig config, const GrGLCa
ps& caps); | 133 static void GetTexParamSwizzle(GrPixelConfig config, |
| 134 const GrGLSLCaps& caps, |
| 135 GrGLenum* glSwizzle); |
134 | 136 |
135 | 137 |
136 private: | 138 private: |
137 GrGLGpu(GrGLContext* ctx, GrContext* context); | 139 GrGLGpu(GrGLContext* ctx, GrContext* context); |
138 | 140 |
139 // GrGpu overrides | 141 // GrGpu overrides |
140 void onResetContext(uint32_t resetBits) override; | 142 void onResetContext(uint32_t resetBits) override; |
141 | 143 |
142 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; | 144 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; |
143 | 145 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 528 |
527 // Mapping of pixel configs to known supported stencil formats to be used | 529 // Mapping of pixel configs to known supported stencil formats to be used |
528 // when adding a stencil buffer to a framebuffer. | 530 // when adding a stencil buffer to a framebuffer. |
529 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; | 531 int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; |
530 | 532 |
531 typedef GrGpu INHERITED; | 533 typedef GrGpu INHERITED; |
532 friend class GrGLPathRendering; // For accessing setTextureUnit. | 534 friend class GrGLPathRendering; // For accessing setTextureUnit. |
533 }; | 535 }; |
534 | 536 |
535 #endif | 537 #endif |
OLD | NEW |