diff options
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index ce2f95ef30..48645cad53 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -317,11 +317,18 @@ private: // ensures that such operations don't negatively interact with tracking bound textures. void setScratchTextureUnit(); - // bounds is region that may be modified and therefore has to be resolved. + // bounds is region that may be modified. // nullptr means whole target. Can be an empty rect. void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); + // Handles cases where a surface will be updated without a call to flushRenderTarget + void didWriteToSurface(GrSurface*, const SkIRect* bounds) const; + + // Need not be called if flushRenderTarget is used. + void flushViewport(const GrGLIRect&); void flushStencil(const GrStencilSettings&); + + // rt is used only if useHWAA is true. void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); // helper for onCreateTexture and writeTexturePixels |