Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index d0bff30262c59a220af6dcea2ab25f87d89c1e52..884efbe8cbe14e9bf51c852a326b5eaa15028693 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -315,7 +315,6 @@ public: |
GrContext::GPUStats* gpuStats() { return &fGPUStats; } |
virtual void buildProgramDesc(const GrOptDrawState&, |
- const GrProgramDesc::DescInfo&, |
GrGpu::DrawType, |
GrProgramDesc*) = 0; |
@@ -357,14 +356,17 @@ public: |
const SkIRect& srcRect, |
const SkIPoint& dstPoint) = 0; |
- virtual void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&); |
+ virtual void draw(const GrOptDrawState&, const GrProgramDesc&, const GrDrawTarget::DrawInfo&); |
virtual void stencilPath(const GrOptDrawState&, |
+ const GrProgramDesc&, |
const GrPath*, |
const GrStencilSettings&); |
virtual void drawPath(const GrOptDrawState&, |
+ const GrProgramDesc&, |
const GrPath*, |
const GrStencilSettings&); |
virtual void drawPaths(const GrOptDrawState&, |
+ const GrProgramDesc&, |
const GrPathRange*, |
const void* indices, |
GrDrawTarget::PathIndexType, |
@@ -469,7 +471,7 @@ private: |
// 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&, DrawType) = 0; |
+ virtual bool flushGraphicsState(const GrOptDrawState&, const GrProgramDesc&, DrawType) = 0; |
// clears target's entire stencil buffer to 0 |
virtual void clearStencil(GrRenderTarget* target) = 0; |