| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 enum TriState { | 306 enum TriState { |
| 307 kNo_TriState, | 307 kNo_TriState, |
| 308 kYes_TriState, | 308 kYes_TriState, |
| 309 kUnknown_TriState | 309 kUnknown_TriState |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 GrGLuint fTempSrcFBOID; | 312 GrGLuint fTempSrcFBOID; |
| 313 GrGLuint fTempDstFBOID; | 313 GrGLuint fTempDstFBOID; |
| 314 | 314 |
| 315 GrGLuint fStencilClearFBOID; |
| 316 |
| 315 // last scissor / viewport scissor state seen by the GL. | 317 // last scissor / viewport scissor state seen by the GL. |
| 316 struct { | 318 struct { |
| 317 TriState fEnabled; | 319 TriState fEnabled; |
| 318 GrGLIRect fRect; | 320 GrGLIRect fRect; |
| 319 void invalidate() { | 321 void invalidate() { |
| 320 fEnabled = kUnknown_TriState; | 322 fEnabled = kUnknown_TriState; |
| 321 fRect.invalidate(); | 323 fRect.invalidate(); |
| 322 } | 324 } |
| 323 } fHWScissorSettings; | 325 } fHWScissorSettings; |
| 324 | 326 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 465 |
| 464 // we record what stencil format worked last time to hopefully exit early | 466 // we record what stencil format worked last time to hopefully exit early |
| 465 // from our loop that tries stencil formats and calls check fb status. | 467 // from our loop that tries stencil formats and calls check fb status. |
| 466 int fLastSuccessfulStencilFmtIdx; | 468 int fLastSuccessfulStencilFmtIdx; |
| 467 | 469 |
| 468 typedef GrGpu INHERITED; | 470 typedef GrGpu INHERITED; |
| 469 friend class GrGLPathRendering; // For accessing setTextureUnit. | 471 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 470 }; | 472 }; |
| 471 | 473 |
| 472 #endif | 474 #endif |
| OLD | NEW |