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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // determines valid stencil formats | 301 // determines valid stencil formats |
302 void initStencilFormats(); | 302 void initStencilFormats(); |
303 | 303 |
304 // sets a texture unit to use for texture operations other than binding a te
xture to a program. | 304 // sets a texture unit to use for texture operations other than binding a te
xture to a program. |
305 // ensures that such operations don't negatively interact with tracking boun
d textures. | 305 // ensures that such operations don't negatively interact with tracking boun
d textures. |
306 void setScratchTextureUnit(); | 306 void setScratchTextureUnit(); |
307 | 307 |
308 // bounds is region that may be modified. | 308 // bounds is region that may be modified. |
309 // nullptr means whole target. Can be an empty rect. | 309 // nullptr means whole target. Can be an empty rect. |
310 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl
eSRGB = false); | 310 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl
eSRGB = false); |
311 // Handles cases where a surface will be updated without a call to flushRend
erTarget | |
312 void didWriteToSurface(GrSurface*, const SkIRect* bounds, int mipLevels = 1)
const; | |
313 | 311 |
314 // Need not be called if flushRenderTarget is used. | 312 // Need not be called if flushRenderTarget is used. |
315 void flushViewport(const GrGLIRect&); | 313 void flushViewport(const GrGLIRect&); |
316 | 314 |
317 void flushStencil(const GrStencilSettings&); | 315 void flushStencil(const GrStencilSettings&); |
318 | 316 |
319 // rt is used only if useHWAA is true. | 317 // rt is used only if useHWAA is true. |
320 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); | 318 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); |
321 | 319 |
322 void flushMinSampleShading(float minSampleShading); | 320 void flushMinSampleShading(float minSampleShading); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 bool fHWPLSEnabled; | 562 bool fHWPLSEnabled; |
565 bool fPLSHasBeenUsed; | 563 bool fPLSHasBeenUsed; |
566 | 564 |
567 float fHWMinSampleShading; | 565 float fHWMinSampleShading; |
568 | 566 |
569 typedef GrGpu INHERITED; | 567 typedef GrGpu INHERITED; |
570 friend class GrGLPathRendering; // For accessing setTextureUnit. | 568 friend class GrGLPathRendering; // For accessing setTextureUnit. |
571 }; | 569 }; |
572 | 570 |
573 #endif | 571 #endif |
OLD | NEW |