From 77b1307c1f5dac019575a6d431d5ce657370c4fb Mon Sep 17 00:00:00 2001 From: joshualitt Date: Mon, 27 Oct 2014 14:51:01 -0700 Subject: Scissor rect on drawinfo BUG=skia: Review URL: https://codereview.chromium.org/678683005 --- src/gpu/gl/GrGpuGL.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/gpu/gl/GrGpuGL.h') diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h index f18962cd37..973a568981 100644 --- a/src/gpu/gl/GrGpuGL.h +++ b/src/gpu/gl/GrGpuGL.h @@ -148,7 +148,9 @@ private: virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; virtual void clearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) SK_OVERRIDE; - virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; + virtual bool flushGraphicsState(DrawType, + const ScissorState&, + const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; // GrDrawTarget overrides virtual void didAddGpuTraceMarker() SK_OVERRIDE; @@ -220,7 +222,12 @@ private: // flushes the scissor. see the note on flushBoundTextureAndParams about // flushing the scissor after that function is called. - void flushScissor(const GrGLIRect& rtViewport, GrSurfaceOrigin rtOrigin); + void flushScissor(const ScissorState&, + const GrGLIRect& rtViewport, + GrSurfaceOrigin rtOrigin); + + // disables the scissor + void disableScissor(); void initFSAASupport(); -- cgit v1.2.3