diff options
author | 2014-10-27 14:51:01 -0700 | |
---|---|---|
committer | 2014-10-27 14:51:01 -0700 | |
commit | 77b1307c1f5dac019575a6d431d5ce657370c4fb (patch) | |
tree | 2cc52fe0d28b143d0498fb8ddceb44b312013988 /src/gpu/gl/GrGpuGL.h | |
parent | fa4689d56384da5bb264a480e636fac126fb93ca (diff) |
Scissor rect on drawinfo
BUG=skia:
Review URL: https://codereview.chromium.org/678683005
Diffstat (limited to 'src/gpu/gl/GrGpuGL.h')
-rw-r--r-- | src/gpu/gl/GrGpuGL.h | 11 |
1 files changed, 9 insertions, 2 deletions
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(); |