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 | 8 |
9 | 9 |
10 #ifndef GrGpuGL_DEFINED | 10 #ifndef GrGpuGL_DEFINED |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // flushes the scissor. see the note on flushBoundTextureAndParams about | 221 // flushes the scissor. see the note on flushBoundTextureAndParams about |
222 // flushing the scissor after that function is called. | 222 // flushing the scissor after that function is called. |
223 void flushScissor(); | 223 void flushScissor(); |
224 | 224 |
225 void initFSAASupport(); | 225 void initFSAASupport(); |
226 | 226 |
227 // determines valid stencil formats | 227 // determines valid stencil formats |
228 void initStencilFormats(); | 228 void initStencilFormats(); |
229 | 229 |
230 void setSpareTextureUnit(); | 230 // sets a texture unit to use for texture operations other than binding a te
xture to a program. |
| 231 // ensures that such operations don't negatively interact with tracking boun
d textures. |
| 232 void setScratchTextureUnit(); |
231 | 233 |
232 // bound is region that may be modified and therefore has to be resolved. | 234 // bound is region that may be modified and therefore has to be resolved. |
233 // NULL means whole target. Can be an empty rect. | 235 // NULL means whole target. Can be an empty rect. |
234 void flushRenderTarget(const GrIRect* bound); | 236 void flushRenderTarget(const GrIRect* bound); |
235 void flushStencil(DrawType); | 237 void flushStencil(DrawType); |
236 void flushAAState(DrawType); | 238 void flushAAState(DrawType); |
237 | 239 |
238 bool configToGLFormats(GrPixelConfig config, | 240 bool configToGLFormats(GrPixelConfig config, |
239 bool getSizedInternal, | 241 bool getSizedInternal, |
240 GrGLenum* internalFormat, | 242 GrGLenum* internalFormat, |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 420 |
419 GrGLProgram::MatrixState fHWPathStencilMatrixState; | 421 GrGLProgram::MatrixState fHWPathStencilMatrixState; |
420 | 422 |
421 GrStencilSettings fHWStencilSettings; | 423 GrStencilSettings fHWStencilSettings; |
422 TriState fHWStencilTestEnabled; | 424 TriState fHWStencilTestEnabled; |
423 | 425 |
424 GrDrawState::DrawFace fHWDrawFace; | 426 GrDrawState::DrawFace fHWDrawFace; |
425 TriState fHWWriteToColor; | 427 TriState fHWWriteToColor; |
426 TriState fHWDitherEnabled; | 428 TriState fHWDitherEnabled; |
427 GrRenderTarget* fHWBoundRenderTarget; | 429 GrRenderTarget* fHWBoundRenderTarget; |
428 GrTexture* fHWBoundTextures[GrDrawState::kNumStages]; | 430 SkTArray<GrTexture*, true> fHWBoundTextures; |
429 ///@} | 431 ///@} |
430 | 432 |
431 // we record what stencil format worked last time to hopefully exit early | 433 // we record what stencil format worked last time to hopefully exit early |
432 // from our loop that tries stencil formats and calls check fb status. | 434 // from our loop that tries stencil formats and calls check fb status. |
433 int fLastSuccessfulStencilFmtIdx; | 435 int fLastSuccessfulStencilFmtIdx; |
434 | 436 |
435 typedef GrGpu INHERITED; | 437 typedef GrGpu INHERITED; |
436 }; | 438 }; |
437 | 439 |
438 #endif | 440 #endif |
OLD | NEW |