Index: src/gpu/gl/GrGLGpu.h |
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h |
index 62803ee84c943eb378bbbfbac0b72a506ff66ddf..b23be3d9a23d2fa2b54a31523b6e9801ccca7e86 100644 |
--- a/src/gpu/gl/GrGLGpu.h |
+++ b/src/gpu/gl/GrGLGpu.h |
@@ -230,7 +230,8 @@ private: |
void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[]); |
// Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. |
- bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& primProc); |
+ // willDrawPoints must be true if point primitives will be rendered after setting the GL state. |
+ bool flushGLState(const GrPipeline&, const GrPrimitiveProcessor&, bool willDrawPoints); |
// 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 |
@@ -269,7 +270,8 @@ private: |
~ProgramCache(); |
void abandon(); |
- GrGLProgram* refProgram(const GrGLGpu* gpu, const GrPipeline&, const GrPrimitiveProcessor&); |
+ GrGLProgram* refProgram(const GrGLGpu*, const GrPipeline&, const GrPrimitiveProcessor&, |
+ bool hasPointSize); |
private: |
enum { |