| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 // determines valid stencil formats | 322 // determines valid stencil formats |
| 323 void initStencilFormats(); | 323 void initStencilFormats(); |
| 324 | 324 |
| 325 // sets a texture unit to use for texture operations other than binding a te
xture to a program. | 325 // sets a texture unit to use for texture operations other than binding a te
xture to a program. |
| 326 // ensures that such operations don't negatively interact with tracking boun
d textures. | 326 // ensures that such operations don't negatively interact with tracking boun
d textures. |
| 327 void setScratchTextureUnit(); | 327 void setScratchTextureUnit(); |
| 328 | 328 |
| 329 // bounds is region that may be modified. | 329 // bounds is region that may be modified. |
| 330 // nullptr means whole target. Can be an empty rect. | 330 // nullptr means whole target. Can be an empty rect. |
| 331 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); | 331 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool disabl
eSRGB = false); |
| 332 // Handles cases where a surface will be updated without a call to flushRend
erTarget | 332 // Handles cases where a surface will be updated without a call to flushRend
erTarget |
| 333 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; | 333 void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; |
| 334 | 334 |
| 335 // Need not be called if flushRenderTarget is used. | 335 // Need not be called if flushRenderTarget is used. |
| 336 void flushViewport(const GrGLIRect&); | 336 void flushViewport(const GrGLIRect&); |
| 337 | 337 |
| 338 void flushStencil(const GrStencilSettings&); | 338 void flushStencil(const GrStencilSettings&); |
| 339 | 339 |
| 340 // rt is used only if useHWAA is true. | 340 // rt is used only if useHWAA is true. |
| 341 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); | 341 void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 } fPLSSetupProgram; | 617 } fPLSSetupProgram; |
| 618 | 618 |
| 619 bool fHWPLSEnabled; | 619 bool fHWPLSEnabled; |
| 620 bool fPLSHasBeenUsed; | 620 bool fPLSHasBeenUsed; |
| 621 | 621 |
| 622 typedef GrGpu INHERITED; | 622 typedef GrGpu INHERITED; |
| 623 friend class GrGLPathRendering; // For accessing setTextureUnit. | 623 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 #endif | 626 #endif |
| OLD | NEW |