| Index: src/gpu/gl/GrGLGpu.h
|
| diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
|
| index 39d565987d025ad9a5168dcf4ba6ae3e560fede0..f4f3c1b919266734602332b3b682531f3dbf5a37 100644
|
| --- a/src/gpu/gl/GrGLGpu.h
|
| +++ b/src/gpu/gl/GrGLGpu.h
|
| @@ -95,10 +95,6 @@ public:
|
| fHWGeometryState.notifyIndexBufferDelete(id);
|
| }
|
|
|
| - void buildProgramDesc(GrProgramDesc*,
|
| - const GrPrimitiveProcessor&,
|
| - const GrPipeline&) const override;
|
| -
|
| // id and type (GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, etc.) of buffer to bind
|
| void bindBuffer(GrGLuint id, GrGLenum type);
|
|
|
| @@ -216,7 +212,11 @@ private:
|
|
|
| void onResolveRenderTarget(GrRenderTarget* target) override;
|
|
|
| - void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override;
|
| + void onDraw(const GrPipeline&,
|
| + const GrPrimitiveProcessor&,
|
| + GrPrimitiveType primitiveType,
|
| + const GrVertices*,
|
| + int drawCount) override;
|
|
|
| bool onCopySurface(GrSurface* dst,
|
| GrSurface* src,
|
| @@ -232,7 +232,7 @@ private:
|
| void setTextureUnit(int unitIdx);
|
|
|
| // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
|
| - bool flushGLState(const DrawArgs&);
|
| + bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& primProc);
|
|
|
| // Sets up vertex attribute pointers and strides. On return indexOffsetInBytes gives the offset
|
| // an into the index buffer. It does not account for vertices.startIndex() but rather the start
|
| @@ -261,7 +261,7 @@ private:
|
| void stampRectUsingProgram(GrGLuint program, const SkRect& bounds, GrGLint posXformUniform,
|
| GrGLuint arrayBuffer);
|
|
|
| - void setupPixelLocalStorage(const DrawArgs& args);
|
| + void setupPixelLocalStorage(const GrPipeline&, const GrPrimitiveProcessor&);
|
|
|
| static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
|
|
|
| @@ -272,7 +272,7 @@ private:
|
|
|
| void reset();
|
| void abandon();
|
| - GrGLProgram* refProgram(const DrawArgs&);
|
| + GrGLProgram* refProgram(const GrGLGpu* gpu, const GrPipeline&, const GrPrimitiveProcessor&);
|
|
|
| private:
|
| enum {
|
|
|