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

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

Issue 678843003: Revert of Clip mask manager sets stencil on draw type (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGpuGL.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 GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void initStencilFormats(); 228 void initStencilFormats();
229 229
230 // sets a texture unit to use for texture operations other than binding a te xture to a program. 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. 231 // ensures that such operations don't negatively interact with tracking boun d textures.
232 void setScratchTextureUnit(); 232 void setScratchTextureUnit();
233 233
234 // bounds is region that may be modified and therefore has to be resolved. 234 // bounds is region that may be modified and therefore has to be resolved.
235 // NULL means whole target. Can be an empty rect. 235 // NULL means whole target. Can be an empty rect.
236 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); 236 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds);
237 237
238 void flushStencil(const GrStencilSettings&, DrawType); 238 void flushStencil(DrawType);
239 void flushAAState(const GrOptDrawState&, DrawType); 239 void flushAAState(const GrOptDrawState&, DrawType);
240 240
241 bool configToGLFormats(GrPixelConfig config, 241 bool configToGLFormats(GrPixelConfig config,
242 bool getSizedInternal, 242 bool getSizedInternal,
243 GrGLenum* internalFormat, 243 GrGLenum* internalFormat,
244 GrGLenum* externalFormat, 244 GrGLenum* externalFormat,
245 GrGLenum* externalType); 245 GrGLenum* externalType);
246 // helper for onCreateTexture and writeTexturePixels 246 // helper for onCreateTexture and writeTexturePixels
247 bool uploadTexData(const GrGLTexture::Desc& desc, 247 bool uploadTexData(const GrGLTexture::Desc& desc,
248 bool isNewTexture, 248 bool isNewTexture,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 // we record what stencil format worked last time to hopefully exit early 441 // we record what stencil format worked last time to hopefully exit early
442 // from our loop that tries stencil formats and calls check fb status. 442 // from our loop that tries stencil formats and calls check fb status.
443 int fLastSuccessfulStencilFmtIdx; 443 int fLastSuccessfulStencilFmtIdx;
444 444
445 typedef GrGpu INHERITED; 445 typedef GrGpu INHERITED;
446 friend class GrGLPathRendering; // For accessing setTextureUnit. 446 friend class GrGLPathRendering; // For accessing setTextureUnit.
447 }; 447 };
448 448
449 #endif 449 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698