diff options
author | bsalomon <bsalomon@google.com> | 2014-12-16 13:05:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-16 13:05:12 -0800 |
commit | d95263c60e1c3b9e337d777d6f3cf286c1dc43f6 (patch) | |
tree | a7147f7ce3744ea844f5aa2f0d52bfbaace4168b /src/gpu/GrGpu.h | |
parent | 5a602ca73c5f88e463ae786f7587ecc9aa4a13b4 (diff) |
Remove GrGpu::flushGraphicsState
Review URL: https://codereview.chromium.org/809843002
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 7f4eb53899..611b7a51fe 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -436,6 +436,16 @@ private: // overridden by backend-specific derived class to perform the draw call. virtual void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) = 0; + virtual void onStencilPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&) = 0; + virtual void onDrawPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&) = 0; + virtual void onDrawPaths(const GrOptDrawState&, + const GrPathRange*, + const void* indices, + GrDrawTarget::PathIndexType, + const float transformValues[], + GrDrawTarget::PathTransformType, + int count, + const GrStencilSettings&) = 0; // overridden by backend-specific derived class to perform the read pixels. virtual bool onReadPixels(GrRenderTarget* target, @@ -461,12 +471,6 @@ private: // attaches an existing SB to an existing RT. virtual bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) = 0; - // The GrGpu typically records the clients requested state and then flushes - // deltas from previous state at draw time. This function does the - // backend-specific flush of the state. - // returns false if current state is unsupported. - virtual bool flushGraphicsState(const GrOptDrawState&) = 0; - // clears target's entire stencil buffer to 0 virtual void clearStencil(GrRenderTarget* target) = 0; |