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

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

Issue 2453793002: Add disableStencil method to GrGLGpu (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void setScratchTextureUnit(); 334 void setScratchTextureUnit();
335 335
336 // bounds is region that may be modified. 336 // bounds is region that may be modified.
337 // nullptr means whole target. Can be an empty rect. 337 // nullptr means whole target. Can be an empty rect.
338 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl eSRGB = false); 338 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl eSRGB = false);
339 339
340 // Need not be called if flushRenderTarget is used. 340 // Need not be called if flushRenderTarget is used.
341 void flushViewport(const GrGLIRect&); 341 void flushViewport(const GrGLIRect&);
342 342
343 void flushStencil(const GrStencilSettings&); 343 void flushStencil(const GrStencilSettings&);
344 void disableStencil();
344 345
345 // rt is used only if useHWAA is true. 346 // rt is used only if useHWAA is true.
346 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); 347 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled);
347 348
348 void flushMinSampleShading(float minSampleShading); 349 void flushMinSampleShading(float minSampleShading);
349 350
350 void flushFramebufferSRGB(bool enable); 351 void flushFramebufferSRGB(bool enable);
351 352
352 // helper for onCreateTexture and writeTexturePixels 353 // helper for onCreateTexture and writeTexturePixels
353 enum UploadType { 354 enum UploadType {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 bool fPLSHasBeenUsed; 643 bool fPLSHasBeenUsed;
643 644
644 float fHWMinSampleShading; 645 float fHWMinSampleShading;
645 646
646 typedef GrGpu INHERITED; 647 typedef GrGpu INHERITED;
647 friend class GrGLPathRendering; // For accessing setTextureUnit. 648 friend class GrGLPathRendering; // For accessing setTextureUnit.
648 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te. 649 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te.
649 }; 650 };
650 651
651 #endif 652 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698