diff options
author | 2014-09-03 07:19:50 -0700 | |
---|---|---|
committer | 2014-09-03 07:19:50 -0700 | |
commit | b0bd4f64a6827dda6f4ec48e4746b0f0b72a975f (patch) | |
tree | cf965c10e8065d4c2fc852e3cbb21c389f8c345d /src/gpu/gl/GrGpuGL.h | |
parent | eddb113ec65226a1563fe9e623e7408443499028 (diff) |
Remove GrDrawTarget::AutoRenderTargetRestore.
Pass GrRenderTarget in GrGpuG clear\bind methods.
BUG=skia:2889
R=egdaniel@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/533883004
Diffstat (limited to 'src/gpu/gl/GrGpuGL.h')
-rw-r--r-- | src/gpu/gl/GrGpuGL.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h index 94fd307f6d..1f748bb826 100644 --- a/src/gpu/gl/GrGpuGL.h +++ b/src/gpu/gl/GrGpuGL.h @@ -125,7 +125,8 @@ private: GrStencilBuffer* sb, GrRenderTarget* rt) SK_OVERRIDE; - virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect) SK_OVERRIDE; + virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, + bool canIgnoreRect) SK_OVERRIDE; virtual bool onReadPixels(GrRenderTarget* target, int left, int top, @@ -144,8 +145,8 @@ private: virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; - virtual void clearStencil() SK_OVERRIDE; - virtual void clearStencilClip(const SkIRect& rect, + 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; @@ -218,7 +219,7 @@ private: // flushes the scissor. see the note on flushBoundTextureAndParams about // flushing the scissor after that function is called. - void flushScissor(); + void flushScissor(const GrGLIRect& rtViewport, GrSurfaceOrigin rtOrigin); void initFSAASupport(); @@ -229,9 +230,10 @@ private: // ensures that such operations don't negatively interact with tracking bound textures. void setScratchTextureUnit(); - // bound is region that may be modified and therefore has to be resolved. + // bounds is region that may be modified and therefore has to be resolved. // NULL means whole target. Can be an empty rect. - void flushRenderTarget(const SkIRect* bound); + void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); + void flushStencil(DrawType); void flushAAState(DrawType); |