Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 941383003: clear stencil buffer using special purpose FBO (Closed) Base URL: https://skia.googlesource.com/skia.git@diff_clip
Patch Set: Address comment Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698