| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |