| 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 GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED | 
| 9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED | 
| 10 | 10 | 
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 281     // GL program-related state | 281     // GL program-related state | 
| 282     ProgramCache*               fProgramCache; | 282     ProgramCache*               fProgramCache; | 
| 283     SkAutoTUnref<GrGLProgram>   fCurrentProgram; | 283     SkAutoTUnref<GrGLProgram>   fCurrentProgram; | 
| 284 | 284 | 
| 285     /////////////////////////////////////////////////////////////////////////// | 285     /////////////////////////////////////////////////////////////////////////// | 
| 286     ///@name Caching of GL State | 286     ///@name Caching of GL State | 
| 287     ///@{ | 287     ///@{ | 
| 288     int                         fHWActiveTextureUnitIdx; | 288     int                         fHWActiveTextureUnitIdx; | 
| 289     GrGLuint                    fHWProgramID; | 289     GrGLuint                    fHWProgramID; | 
| 290 | 290 | 
| 291     GrGLProgram::SharedGLState  fSharedGLProgramState; |  | 
| 292 |  | 
| 293     enum TriState { | 291     enum TriState { | 
| 294         kNo_TriState, | 292         kNo_TriState, | 
| 295         kYes_TriState, | 293         kYes_TriState, | 
| 296         kUnknown_TriState | 294         kUnknown_TriState | 
| 297     }; | 295     }; | 
| 298 | 296 | 
| 299     // last scissor / viewport scissor state seen by the GL. | 297     // last scissor / viewport scissor state seen by the GL. | 
| 300     struct { | 298     struct { | 
| 301         TriState    fEnabled; | 299         TriState    fEnabled; | 
| 302         GrGLIRect   fRect; | 300         GrGLIRect   fRect; | 
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 447 | 445 | 
| 448     // we record what stencil format worked last time to hopefully exit early | 446     // we record what stencil format worked last time to hopefully exit early | 
| 449     // from our loop that tries stencil formats and calls check fb status. | 447     // from our loop that tries stencil formats and calls check fb status. | 
| 450     int fLastSuccessfulStencilFmtIdx; | 448     int fLastSuccessfulStencilFmtIdx; | 
| 451 | 449 | 
| 452     typedef GrGpu INHERITED; | 450     typedef GrGpu INHERITED; | 
| 453     friend class GrGLPathRendering; // For accessing setTextureUnit. | 451     friend class GrGLPathRendering; // For accessing setTextureUnit. | 
| 454 }; | 452 }; | 
| 455 | 453 | 
| 456 #endif | 454 #endif | 
| OLD | NEW | 
|---|