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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 311 // Handles cases where a surface will be updated without a call to flushRend
erTarget |
312 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; | 312 void didWriteToSurface(GrSurface*, const SkIRect* bounds, int mipLevels = 1)
const; |
313 | 313 |
314 // Need not be called if flushRenderTarget is used. | 314 // Need not be called if flushRenderTarget is used. |
315 void flushViewport(const GrGLIRect&); | 315 void flushViewport(const GrGLIRect&); |
316 | 316 |
317 void flushStencil(const GrStencilSettings&); | 317 void flushStencil(const GrStencilSettings&); |
318 | 318 |
319 // rt is used only if useHWAA is true. | 319 // rt is used only if useHWAA is true. |
320 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); | 320 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); |
321 | 321 |
322 void flushMinSampleShading(float minSampleShading); | 322 void flushMinSampleShading(float minSampleShading); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 bool fHWPLSEnabled; | 564 bool fHWPLSEnabled; |
565 bool fPLSHasBeenUsed; | 565 bool fPLSHasBeenUsed; |
566 | 566 |
567 float fHWMinSampleShading; | 567 float fHWMinSampleShading; |
568 | 568 |
569 typedef GrGpu INHERITED; | 569 typedef GrGpu INHERITED; |
570 friend class GrGLPathRendering; // For accessing setTextureUnit. | 570 friend class GrGLPathRendering; // For accessing setTextureUnit. |
571 }; | 571 }; |
572 | 572 |
573 #endif | 573 #endif |
OLD | NEW |