diff options
author | Brian Salomon <bsalomon@google.com> | 2018-06-23 15:17:27 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-25 17:55:45 +0000 |
commit | ff168d9258e0101826a8072b4ee077c3d2aa7258 (patch) | |
tree | c8338ce3ffb83b18575785a3bd98b2607e59bb1a /src/gpu/gl/GrGLGpu.cpp | |
parent | 721e63727f38b9c7664a173ab475d7c7a58cd8a8 (diff) |
Put GrPrimitiveProcessor/GrGeometryProcessor before GrPipeline in param lists.
We were inconsistent about which order these were in. Having the processor first
will make the parameter order more logical for an upcoming change. Also, the primitive
processor comes logically before the pipeline.
Change-Id: I3968c5e4e6dff01f9c4ad311eb1795b3c7580ff5
Reviewed-on: https://skia-review.googlesource.com/137228
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 9e73259a55..97dc3d17ab 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -1683,9 +1683,9 @@ void GrGLGpu::flushMinSampleShading(float minSampleShading) { } } -bool GrGLGpu::flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& primProc, +bool GrGLGpu::flushGLState(const GrPrimitiveProcessor& primProc, const GrPipeline& pipeline, bool willDrawPoints) { - sk_sp<GrGLProgram> program(fProgramCache->refProgram(this, pipeline, primProc, willDrawPoints)); + sk_sp<GrGLProgram> program(fProgramCache->refProgram(this, primProc, pipeline, willDrawPoints)); if (!program) { GrCapsDebugf(this->caps(), "Failed to create program!\n"); return false; @@ -2248,8 +2248,8 @@ void GrGLGpu::flushViewport(const GrGLIRect& viewport) { #endif #endif -void GrGLGpu::draw(const GrPipeline& pipeline, - const GrPrimitiveProcessor& primProc, +void GrGLGpu::draw(const GrPrimitiveProcessor& primProc, + const GrPipeline& pipeline, const GrMesh meshes[], const GrPipeline::DynamicState dynamicStates[], int meshCount) { @@ -2262,7 +2262,7 @@ void GrGLGpu::draw(const GrPipeline& pipeline, break; } } - if (!this->flushGLState(pipeline, primProc, hasPoints)) { + if (!this->flushGLState(primProc, pipeline, hasPoints)) { return; } |